cvs: phpdoc /en/language types.xml

From: Date: Thu, 10 Jan 2008 16:09:42 +0000
Subject: cvs: phpdoc /en/language types.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-1019@lists.php.net to get a copy of this message
colder Thu Jan 10 16:09:42 2008 UTC Modified files: /phpdoc/en/language types.xml Log: Add clarity to function calls inside interpolated values: doc about {${foo()}} http://cvs.php.net/viewvc.cgi/phpdoc/en/language/types.xml?r1=1.192&r2=1.193&diff_format=u Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.192 phpdoc/en/language/types.xml:1.193 --- phpdoc/en/language/types.xml:1.192 Wed Nov 21 17:19:17 2007 +++ phpdoc/en/language/types.xml Thu Jan 10 16:09:42 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.192 $ --> +<!-- $Revision: 1.193 $ --> <chapter xml:id="language.types" xmlns="http://docbook.org/ns/docbook"> <title>Types</title> @@ -1080,6 +1080,10 @@ echo "You can even write {$obj->values[3]->name}"; echo "This is the value of the var named $name: {${$name}}"; + +echo "This is the value of the var named by the return value of getName(): {${getName()}}"; + +echo "This is the value of the var named by the return value of \$object->getName(): {${$object->getName()}}"; ?> ]]> <!-- maybe it's better to leave this out?? @@ -1093,7 +1097,7 @@ <note> <para> - Functions and method calls work since PHP 5. + Functions and method calls inside <literal>{$ }</literal> work since PHP 5. </para> </note> <note>

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