From 4f18ef3cf834316f39d2eae8051cff00e6215494 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Mon, 20 Aug 2001 19:27:20 +0000 Subject: [PATCH] Fix comment on "bla array[index] " syntax git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@55587 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/language/types.xml b/language/types.xml index 178ad155c1..e87251633f 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1,5 +1,5 @@ - + Types @@ -796,7 +796,9 @@ echo "He drunk some ${beer}s"; // works $fruits = array( 'strawberry' => 'red' , 'banana' => 'yellow' ); -echo "A banana is $fruits[banana]."; // this works, but is wrong see the explanation +echo "A banana is $fruits[banana]."; // note that this works differently +outside string-quotes. See $foo[bar] outside strings echo "This square is $square->width meters broad."; echo "This square is $square->width00 centimeters broad."; // won't work, // for a solution, see the complex syntax.