Doc #53054 [Csd]: Strings variable parsing - complex syntax

From: Date: Tue, 19 Oct 2010 04:46:49 +0000
Subject: Doc #53054 [Csd]: Strings variable parsing - complex syntax
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5248@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53054&edit=1 ID: 53054 User updated by: chealer at gmail dot com Reported by: chealer at gmail dot com Summary: Strings variable parsing - complex syntax Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Assigned To: kalle Block user comment: N New Comment: This report is about the *complex* syntax. Also, the problem is the text, which does not explain the possibility of accessing array elements with the syntax. The examples do. The new documentation text I referred to is: Any scalar variable, array variable or object property with a string representation can be included via this syntax. Note that array elements were an example, the description is over-restrictive in general. Previous Comments: ------------------------------------------------------------------------ [2010-10-19 06:25:40] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&revision=304495 Log: Fixed bug #53054 (Strings variable parsing - complex syntax) ------------------------------------------------------------------------ [2010-10-19 06:24:37] kalle@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. The backslash is correct as the string is interpolated and would otherwise output something incorrect. ------------------------------------------------------------------------ [2010-10-13 18:12:01] chealer at gmail dot com Description: ------------ To continue http://bugs.php.net/bug.php?id=52897 which remains closed, the new documentation text does not indicate that the complex syntax allows accessing elements of array variables ({$arr['bar]}). BTW, in the examples, there is still an extra backslash for the method example: This is the value of the var named by the return value of \$object->getName(): ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53054&edit=1

« previous php.doc.bugs (#5248) next »