cvs: phpdoc /en/reference/array/functions array-fill.xml
| From: | Felipe Pena | Date: | Sun, 30 Dec 2007 19:58:59 +0000 |
| Subject: | cvs: phpdoc /en/reference/array/functions array-fill.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-946@lists.php.net to get a copy of this message | ||
felipe Sun Dec 30 19:58:59 2007 UTC
Modified files:
/phpdoc/en/reference/array/functions array-fill.xml
Log:
Add information about negative keys.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/array/functions/array-fill.xml?r1=1.12&r2=1.13&diff_format=u
Index: phpdoc/en/reference/array/functions/array-fill.xml
diff -u phpdoc/en/reference/array/functions/array-fill.xml:1.12
phpdoc/en/reference/array/functions/array-fill.xml:1.13
--- phpdoc/en/reference/array/functions/array-fill.xml:1.12 Wed Jun 20 22:24:14 2007
+++ phpdoc/en/reference/array/functions/array-fill.xml Sun Dec 30 19:58:59 2007
@@ -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 @@
[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>