Bug->Doc #53614 [ReO->Ver]: Strings variable parsing - problematic example among complex syntax examples

From: Date: Fri, 08 May 2015 17:32:42 +0000
Subject: Bug->Doc #53614 [ReO->Ver]: Strings variable parsing - problematic example among complex syntax examples
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12312@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53614&edit=1 ID: 53614 Updated by: cmb@php.net Reported by: chealer at gmail dot com Summary: Strings variable parsing - problematic example among complex syntax examples -Status: Re-Opened +Status: Verified -Type: Bug +Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: ${great} is a variation of the simple syntax ("Enclose the variable name in curly braces to explicitly specify the end of the name."), and so the example should be moved up one section. Previous Comments: ------------------------------------------------------------------------ [2011-02-10 19:26:21] rquadling@php.net Aha. I see what you mean. The documentation says "Since { can not be escaped, this syntax will only be recognised when the $ immediately follows the {." This makes no mention of "{ immediately following the $". In fact, that looks SO wrong that I'm surprised it isn't a parse error. I don't know how to explain the usage. ------------------------------------------------------------------------ [2011-02-10 18:58:41] chealer at gmail dot com rquadling: who, me? That page is the one with the problem. ------------------------------------------------------------------------ [2011-02-10 18:53:45] rquadling@php.net See http://docs.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex ------------------------------------------------------------------------ [2011-02-10 18:47:10] chealer at gmail dot com Huh, what is already where? ------------------------------------------------------------------------ [2011-02-10 14:15:40] vrana@php.net It's already there: echo "This is {$great}"; echo "This is ${great}"; ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=53614 -- Edit this bug report at https://bugs.php.net/bug.php?id=53614&edit=1

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