- Only numeric keys are reset by default (Fixes #38076).

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@221792 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Dave Barr 2006-10-15 05:12:35 +00:00
parent 3e2879c046
commit 0fd3e5a4ed

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
<refentry id="function.array-slice">
<refnamediv>
@ -37,9 +37,9 @@
<parameter>array</parameter>.
</para>
<para>
Note that <function>array_slice</function> will reset the array keys by
default. Since PHP 5.0.2, you can change this behaviour by setting
<parameter>preserve_keys</parameter> to &true;.
Note that <function>array_slice</function> will reset numeric array
keys by default. Since PHP 5.0.2, you can change this behaviour by
setting <parameter>preserve_keys</parameter> to &true;.
</para>
<para>
<example>