mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
2da9f129ef
commit
0dca8349fa
2 changed files with 6 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue