From a075e15a5add8627f06ffb9ad57e75d02de0eee6 Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Sun, 22 Jul 2001 14:47:31 +0000 Subject: [PATCH] Full of bugs... git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@52027 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/types.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/language/types.xml b/language/types.xml index 66c9a963bc..be095fa67a 100644 --- a/language/types.xml +++ b/language/types.xml @@ -1232,9 +1232,9 @@ $error_descriptions[8] = "This is just an informal notice"; // this $a = array( 'color' => 'red' - , 'taste' => 'sweet', - , 'shape' => 'round', - , 'name' => 'apple', + , 'taste' => 'sweet' + , 'shape' => 'round' + , 'name' => 'apple' , 4 // key will be 0 ); @@ -1242,12 +1242,14 @@ $a = array( 'color' => 'red' $a['color'] = 'red'; $a['taste'] = 'sweet'; $a['shape'] = 'round'; +$a['name'] = 'apple'; $a[] = 4; // key will be 0 $b[] = 'a'; $b[] = 'b'; $b[] = 'c'; -// will result in the array array( 0 => 'a' , 1 => 'b' , 2 => 'c' ) +// will result in the array array( 0 => 'a' , 1 => 'b' , 2 => 'c' ), +// or simply array('a', 'b', 'c')