Implement &array.resetspointer (pointer is reset) and a minor example fix.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@114846 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2003-02-05 07:20:39 +00:00
parent 1bb6376814
commit d577dbfb1e
2 changed files with 14 additions and 3 deletions

View file

@ -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>

View file

@ -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>