mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
- fixed xml
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@179306 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
89a0b7b767
commit
35decc6ba7
1 changed files with 12 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.12 $ -->
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- splitted from ./en/functions/array.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.list">
|
||||
<refnamediv>
|
||||
|
@ -90,10 +90,9 @@ while (list($id, $name, $salary) = mysql_fetch_row($result)) {
|
|||
assigned in the reverse order.
|
||||
</para>
|
||||
</warning>
|
||||
<para>
|
||||
<example>
|
||||
<title>Using <function>list</function> with array indices</title>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Using <function>list</function> with array indices</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
|
@ -105,12 +104,12 @@ var_dump($a);
|
|||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Gives the following output (note the order of the elements compared in
|
||||
which order they were written in the <function>list</function> syntax):
|
||||
</para>
|
||||
<screen>
|
||||
</programlisting>
|
||||
<para>
|
||||
Gives the following output (note the order of the elements compared in
|
||||
which order they were written in the <function>list</function> syntax):
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
array(3) {
|
||||
[2]=>
|
||||
|
@ -121,9 +120,8 @@ array(3) {
|
|||
string(6) "coffee"
|
||||
}
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
See also <function>each</function>, <function>array</function>
|
||||
and <function>extract</function>.
|
||||
|
|
Loading…
Reference in a new issue