cvs: phpdoc /en/language/types string.xml

From: Date: Fri, 22 Aug 2008 13:39:59 +0000
Subject: cvs: phpdoc /en/language/types string.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2075@lists.php.net to get a copy of this message
kalle Fri Aug 22 13:39:59 2008 UTC Modified files: /phpdoc/en/language/types string.xml Log: Make the comment more obvious - reported by Ross Masters http://cvs.php.net/viewvc.cgi/phpdoc/en/language/types/string.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/language/types/string.xml diff -u phpdoc/en/language/types/string.xml:1.13 phpdoc/en/language/types/string.xml:1.14 --- phpdoc/en/language/types/string.xml:1.13 Tue Aug 19 22:54:03 2008 +++ phpdoc/en/language/types/string.xml Fri Aug 22 13:39:59 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <sect1 xml:id="language.types.string"> <title>Strings</title> @@ -459,7 +459,7 @@ <?php $beer = 'Heineken'; echo "$beer's taste is great"; // works; "'" is an invalid character for variable names -echo "He drank some $beers"; // won't work; 's' is a valid character for variable names +echo "He drank some $beers"; // won't work; 's' is a valid character for variable names but the variable is "$beer" echo "He drank some ${beer}s"; // works echo "He drank some {$beer}s"; // works ?>

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