mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Add information about negative keys.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@249445 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
885d702e25
commit
a3408906fa
1 changed files with 16 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<refentry xml:id="function.array-fill" xmlns="http://docbook.org/ns/docbook">
|
||||
<refnamediv>
|
||||
<refname>array_fill</refname>
|
||||
|
@ -82,7 +82,9 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
$a = array_fill(5, 6, 'banana');
|
||||
$b = array_fill(-2, 2, 'pear');
|
||||
print_r($a);
|
||||
print_r($b);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -98,12 +100,25 @@ Array
|
|||
[9] => banana
|
||||
[10] => banana
|
||||
)
|
||||
Array
|
||||
(
|
||||
[-2] => pear
|
||||
[0] => pear
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="notes">
|
||||
&reftitle.notes;
|
||||
<para>
|
||||
See also the <link linkend="language.types.array">Arrays</link>
|
||||
section of manual for a detailed explanation of negative keys.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue