Full of bugs...

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@52027 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Gabor Hojtsy 2001-07-22 14:47:31 +00:00
parent ad57e5d176
commit a075e15a5a

View file

@ -1232,9 +1232,9 @@ $error_descriptions[8] = "This is just an informal notice";
<programlisting role="php">
// 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')
</programlisting>
</informalexample>
</para>