Date: 08/20/01
- Next message: eschmid+sic <email protected>: "Re: [PHP-DOC] Re: phpdoc /en/language variables.xml"
- Previous message: Jeroen van Wolffelaar: "[PHP-DOC] Re: phpdoc /en/language types.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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' => 'red' , 'banana' => '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->width meters broad.";
echo "This square is $square->width00 centimeters broad."; // won't work,
// for a solution, see the <link linkend="language.types.string.parsing.complex">complex syntax</link>.
- Next message: eschmid+sic <email protected>: "Re: [PHP-DOC] Re: phpdoc /en/language variables.xml"
- Previous message: Jeroen van Wolffelaar: "[PHP-DOC] Re: phpdoc /en/language types.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

