added php-pi's

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@133569 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Thomas Schoefbeck 2003-06-29 07:43:05 +00:00
parent 2da9f129ef
commit 0dca8349fa
2 changed files with 6 additions and 2 deletions

View file

@ -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.62 -->
<refentry id="function.array-reverse">
<refnamediv>
@ -26,9 +26,11 @@
<title><function>array_reverse</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$input = array ("php", 4.0, array ("green", "red"));
$result = array_reverse ($input);
$result_keyed = array_reverse ($input, TRUE);
?>
]]>
</programlisting>
<para>

View file

@ -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.ksort">
<refnamediv>
@ -22,12 +22,14 @@
<title><function>ksort</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple");
ksort ($fruits);
reset ($fruits);
while (list ($key, $val) = each ($fruits)) {
echo "$key = $val\n";
}
?>
]]>
</programlisting>
<para>