mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fixed the informalexample missing the programlisting children tag
so the manual will build git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@36753 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6d6555ccc9
commit
968017a76c
1 changed files with 17 additions and 13 deletions
|
@ -15,8 +15,8 @@
|
|||
</simpara>
|
||||
<para>
|
||||
See also <function>is_array</function>, <function>explode</function>,
|
||||
<function>implode</function>, <function>split</function>
|
||||
and <function>join</function>.
|
||||
<function>implode</function>, <function>split</function>
|
||||
and <function>join</function>.
|
||||
</para>
|
||||
</partintro>
|
||||
|
||||
|
@ -50,12 +50,12 @@
|
|||
</note>
|
||||
</para>
|
||||
<para>
|
||||
Syntax "index => values", separated by commas, define index
|
||||
and values. index may be of type string or numeric. When index is
|
||||
omitted, a integer index is automatically generated, starting
|
||||
at 0. If index is an integer, next generated index will
|
||||
be the biggest integer index + 1. Note that when two identical
|
||||
index are defined, the last overwrite the first.
|
||||
Syntax "index => values", separated by commas, define index
|
||||
and values. index may be of type string or numeric. When index is
|
||||
omitted, a integer index is automatically generated, starting
|
||||
at 0. If index is an integer, next generated index will
|
||||
be the biggest integer index + 1. Note that when two identical
|
||||
index are defined, the last overwrite the first.
|
||||
</para>
|
||||
<para>
|
||||
The following example demonstrates how to create a
|
||||
|
@ -83,6 +83,7 @@ print_r($array);
|
|||
</example>
|
||||
which will display :
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
Array
|
||||
(
|
||||
[0] => 1
|
||||
|
@ -93,6 +94,7 @@ Array
|
|||
[8] => 1
|
||||
[9] => 19
|
||||
)
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
Note that index '3' is defined twice, and keep its final value of 13.
|
||||
Index 4 is defined after index 8, and next generated index (value 19)
|
||||
|
@ -103,18 +105,20 @@ Array
|
|||
<example>
|
||||
<title>1-based index with <function>Array</function></title>
|
||||
<programlisting role="php">
|
||||
$firstquarter = array(1 => 'January', 'February', 'March');
|
||||
print_r($firstquarter);
|
||||
$firstquarter = array(1 => 'January', 'February', 'March');
|
||||
print_r($firstquarter);
|
||||
</programlisting>
|
||||
</example>
|
||||
which will display :
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
Array
|
||||
(
|
||||
[1] => 'January'
|
||||
[2] => 'February'
|
||||
[3] => 'March'
|
||||
[1] => 'January'
|
||||
[2] => 'February'
|
||||
[3] => 'March'
|
||||
)
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue