note that it doesn't preserve keys from replacement array

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@181315 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
anatoly techtonik 2005-03-04 11:19:04 +00:00
parent 119febb453
commit ad5631260e

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.13 $ -->
<!-- $Revision: 1.14 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.14 -->
<refentry id="function.array-splice">
<refnamediv>
@ -55,8 +55,10 @@
<parameter>length</parameter> are such that nothing is removed,
then the elements from the <parameter>replacement</parameter>
array are inserted in the place specified by the
<parameter>offset</parameter>. Tip: if the replacement is just
one element it is not necessary to put <literal>array()</literal>
<parameter>offset</parameter>. Note that keys in replacement
array are not preserved.
If <parameter>replacement</parameter> is just one element it is
not necessary to put <literal>array()</literal>
around it, unless the element is an array itself.
</para>
<para>