mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
ad57e5d176
commit
a075e15a5a
1 changed files with 6 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue