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

From: Date: Wed, 05 Feb 2003 07:20:39 +0000
Subject: cvs: phpdoc /en/reference/array/functions array-pop.xml array-shift.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351605@lists.php.net to get a copy of this message
philip Wed Feb 5 02:20:39 2003 EDT Modified files: /phpdoc/en/reference/array/functions array-pop.xml array-shift.xml Log: Implement &array.resetspointer (pointer is reset) and a minor example fix. Index: phpdoc/en/reference/array/functions/array-pop.xml diff -u phpdoc/en/reference/array/functions/array-pop.xml:1.4 phpdoc/en/reference/array/functions/array-pop.xml:1.5 --- phpdoc/en/reference/array/functions/array-pop.xml:1.4 Sun May 12 04:19:28 2002 +++ phpdoc/en/reference/array/functions/array-pop.xml Wed Feb 5 02:20:39 2003 @@ -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-pop"> <refnamediv> @@ -19,13 +19,19 @@ If <parameter>array</parameter> is empty (or is not an array), &null; will be returned. </para> + + &array.resetspointer; + <para> <example> <title><function>array_pop</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $stack = array ("orange", "banana", "apple", "raspberry"); $fruit = array_pop ($stack); +print_r($stack); +?> ]]> </programlisting> <para> Index: phpdoc/en/reference/array/functions/array-shift.xml diff -u phpdoc/en/reference/array/functions/array-shift.xml:1.6 phpdoc/en/reference/array/functions/array-shift.xml:1.7 --- phpdoc/en/reference/array/functions/array-shift.xml:1.6 Tue Feb 4 12:19:32 2003 +++ phpdoc/en/reference/array/functions/array-shift.xml Wed Feb 5 02:20:39 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-shift"> <refnamediv> @@ -22,14 +22,19 @@ while literal keys won't be touched. If <parameter>array</parameter> is empty (or is not an array), &null; will be returned. </para> + + &array.resetspointer; + <para> <example> <title><function>array_shift</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $stack = array ("orange", "banana", "apple", "raspberry"); $fruit = array_shift ($stack); -print_r($fruit); +print_r($stack); +?> ]]> </programlisting> <para>

« previous php.doc (#969351605) next »