cvs: phpdoc /en/reference/array/functions array-shift.xml array-unshift.xml

From: Date: Mon, 17 Jun 2002 23:48:37 +0000
Subject: cvs: phpdoc /en/reference/array/functions array-shift.xml array-unshift.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969346565@lists.php.net to get a copy of this message
hholzgra Mon Jun 17 19:48:37 2002 EDT Modified files: /phpdoc/en/reference/array/functions array-shift.xml array-unshift.xml Log: added documentation for the renumber 'feature' of array_shift and unshift (bug #14791) Index: phpdoc/en/reference/array/functions/array-shift.xml diff -u phpdoc/en/reference/array/functions/array-shift.xml:1.4 phpdoc/en/reference/array/functions/array-shift.xml:1.5 --- phpdoc/en/reference/array/functions/array-shift.xml:1.4 Sun May 12 04:19:28 2002 +++ phpdoc/en/reference/array/functions/array-shift.xml Mon Jun 17 19:48:37 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-shift"> <refnamediv> @@ -18,8 +18,9 @@ <function>array_shift</function> shifts the first value of the <parameter>array</parameter> off and returns it, shortening the <parameter>array</parameter> by one element and moving everything - down. If <parameter>array</parameter> is empty (or is not an - array), &null; will be returned. + down. All numerical array keys will be modified to start counting from zero + while literal keys won't be touched. If <parameter>array</parameter> is empty + (or is not an array), &null; will be returned. </para> <para> <example> Index: phpdoc/en/reference/array/functions/array-unshift.xml diff -u phpdoc/en/reference/array/functions/array-unshift.xml:1.4 phpdoc/en/reference/array/functions/array-unshift.xml:1.5 --- phpdoc/en/reference/array/functions/array-unshift.xml:1.4 Sun May 12 04:19:28 2002 +++ phpdoc/en/reference/array/functions/array-unshift.xml Mon Jun 17 19:48:37 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-unshift"> <refnamediv> @@ -22,7 +22,8 @@ <function>array_unshift</function> prepends passed elements to the front of the <parameter>array</parameter>. Note that the list of elements is prepended as a whole, so that the prepended - elements stay in the same order. + elements stay in the same order. All numerical array keys will be + modified to start counting from zero while literal keys won't be touched. </para> <para> Returns the new number of elements in the

« previous php.doc (#969346565) next »