techtonik Fri Mar 4 06:19:05 2005 EDT
Modified files: /phpdoc/en/reference/array/functions array-splice.xml Log: note that it doesn't preserve keys from replacement array http://cvs.php.net/diff.php/phpdoc/en/reference/array/functions/array-splice.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc/en/reference/array/functions/array-splice.xml diff -u phpdoc/en/reference/array/functions/array-splice.xml:1.13 phpdoc/en/reference/array/functions/array-splice.xml:1.14 --- phpdoc/en/reference/array/functions/array-splice.xml:1.13 Wed Nov 10 03:30:19 2004 +++ phpdoc/en/reference/array/functions/array-splice.xml Fri Mar 4 06:19:04 2005 @@ -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>