php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53240 Strings variable parsing - complex syntax
Submitted: 2010-11-04 03:30 UTC Modified: 2010-11-04 17:27 UTC
From: chealer at gmail dot com Assigned: rquadling (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chealer at gmail dot com
New email:
PHP Version: OS:

 

 [2010-11-04 03:30 UTC] chealer at gmail dot com
Description:
------------
To continue http://bugs.php.net/bug.php?id=52897 which remains closed,
the new documentation text - "Any scalar variable, array variable or object property with a string representation can be included via this syntax." - does not indicate that the complex syntax allows accessing elements of array variables ({$arr['bar]}).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-04 11:20 UTC] rquadling@php.net
-Status: Open +Status: Bogus
 [2010-11-04 11:20 UTC] rquadling@php.net
DOC : "Any scalar variable, >>>array variable<<< or object property with a string representation".

YOU : "does not indicate that the complex syntax allows accessing elements of >>>array variable<<<s"
 [2010-11-04 16:56 UTC] chealer at gmail dot com
The documentation indicates array variables can be included. The problem is it does not indicate the possibility to include ******ELEMENTS OF****** array variables.
 [2010-11-04 17:17 UTC] rquadling@php.net
-Assigned To: +Assigned To: rquadling
 [2010-11-04 17:17 UTC] rquadling@php.net
Aha! Actually "array variables" cannot be include as such. Doing so would output 
"Array".

But " Any scalar variable, array element or object property" certainly makes more 
sense.

Thank you.
 [2010-11-04 17:18 UTC] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=305086
Log: array elements, not array variables.
Fix bug #53240
 [2010-11-04 17:18 UTC] rquadling@php.net
-Status: Bogus +Status: Re-Opened
 [2010-11-04 17:18 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2010-11-04 17:27 UTC] rquadling@php.net
-Status: Re-Opened +Status: Closed
 [2010-11-04 17:27 UTC] rquadling@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=568b69c9946e6143e7d3bd5607affe9494e682c8
Log: array elements, not array variables. Fix bug #53240
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 06:00:01 2026 UTC