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:
Felipe Pena 2007-12-30 19:58:59 +00:00
parent 885d702e25
commit a3408906fa

View file

@ -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>