cvs: phpdoc /en/reference/array/functions array-values.xml

From: Date: Fri, 30 May 2003 17:53:11 +0000
Subject: cvs: phpdoc /en/reference/array/functions array-values.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354099@lists.php.net to get a copy of this message
philip Fri May 30 13:53:11 2003 EDT Modified files: /phpdoc/en/reference/array/functions array-values.xml Log: Removed php3 example, and added php tags. Index: phpdoc/en/reference/array/functions/array-values.xml diff -u phpdoc/en/reference/array/functions/array-values.xml:1.5 phpdoc/en/reference/array/functions/array-values.xml:1.6 --- phpdoc/en/reference/array/functions/array-values.xml:1.5 Tue Feb 4 12:19:32 2003 +++ phpdoc/en/reference/array/functions/array-values.xml Fri May 30 13:53:11 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-values"> <refnamediv> @@ -22,8 +22,10 @@ <title><function>array_values</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $array = array ("size" => "XL", "color" => "gold"); print_r(array_values ($array)); +?> ]]> </programlisting> <para> @@ -40,29 +42,6 @@ </para> </example> </para> - <note> - <para> - This function was added to PHP 4, below is an implementation for - those still using PHP 3. - <example> - <title> - Implementation of <function>array_values</function> for PHP 3 - users - </title> - <programlisting role="php"> -<![CDATA[ -function array_values ($arr) { - $t = array(); - while (list($k, $v) = each ($arr)) { - $t[] = $v; - } - return $t; -} -]]> - </programlisting> - </example> - </para> - </note> <para> See also <function>array_keys</function>. </para>

« previous php.doc (#969354099) next »