cvs: phpdoc /en/language types.xml

From: Date: Mon, 20 Aug 2001 19:27:21 +0000
Subject: cvs: phpdoc /en/language types.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969337218@lists.php.net to get a copy of this message
jeroen Mon Aug 20 15:27:21 2001 EDT Modified files: /phpdoc/en/language types.xml Log: Fix comment on "bla array[index] " syntax Index: phpdoc/en/language/types.xml diff -u phpdoc/en/language/types.xml:1.47 phpdoc/en/language/types.xml:1.48 --- phpdoc/en/language/types.xml:1.47 Mon Aug 20 07:57:06 2001 +++ phpdoc/en/language/types.xml Mon Aug 20 15:27:20 2001 @@ -1,5 +1,5 @@ <?xml encoding="iso-8859-1"?> -<!-- $Revision: 1.47 $ --> +<!-- $Revision: 1.48 $ --> <chapter id="language.types"> <title>Types</title> @@ -796,7 +796,9 @@ <informalexample> <programlisting role="php"> $fruits = array( 'strawberry' =&gt; 'red' , 'banana' =&gt; 'yellow' ); -echo "A banana is $fruits[banana]."; // this works, but is wrong <link linkend="language.types.array.foo-bar">see the explanation</link> +echo "A banana is $fruits[banana]."; // note that this works differently +outside string-quotes. See <link +linkend="language.types.array.foo-bar"><literal>$foo[bar]</literal> outside strings</link> echo "This square is $square-&gt;width meters broad."; echo "This square is $square-&gt;width00 centimeters broad."; // won't work, // for a solution, see the <link linkend="language.types.string.parsing.complex">complex syntax</link>.

« previous php.doc (#969337218) next »