svn: /phpdoc/en/trunk/language/types/ string.xml

From: Date: Wed, 22 Sep 2010 08:31:49 +0000
Subject: svn: /phpdoc/en/trunk/language/types/ string.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7150@lists.php.net to get a copy of this message
aharvey Wed, 22 Sep 2010 08:31:49 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=303666 Log: Fix doc bug #52897 (Strings variable parsing - complex syntax). Bug: http://bugs.php.net/52897 (Assigned) Strings variable parsing - complex syntax Changed paths: U phpdoc/en/trunk/language/types/string.xml Modified: phpdoc/en/trunk/language/types/string.xml =================================================================== --- phpdoc/en/trunk/language/types/string.xml 2010-09-22 08:06:24 UTC (rev 303665) +++ phpdoc/en/trunk/language/types/string.xml 2010-09-22 08:31:49 UTC (rev 303666) @@ -586,14 +586,14 @@ </simpara> <simpara> - In fact, any value in the namespace can be included in a - <type>string</type> with this syntax. Simply write the expression the same - way as it would appear outside the <type>string</type>, and then wrap it - in <literal>{</literal> and <literal>}</literal>. Since - <literal>{</literal> can not be escaped, this syntax will only be - recognised when the <literal>$</literal> immediately follows the - <literal>{</literal>. Use <literal>{\$</literal> to get a literal - <literal>{$</literal>. Some examples to make it clear: + Any scalar variable, array variable or object property with a + <type>string</type> representation can be included via this syntax. + Simply write the expression the same way as it would appear outside the + <type>string</type>, and then wrap it in <literal>{</literal> and + <literal>}</literal>. Since <literal>{</literal> can not be escaped, this + syntax will only be recognised when the <literal>$</literal> immediately + follows the <literal>{</literal>. Use <literal>{\$</literal> to get a + literal <literal>{$</literal>. Some examples to make it clear: </simpara> <informalexample>

« previous php.doc.cvs (#7150) next »