mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
using screen
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@151609 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9dbe97c8f2
commit
665aa9a632
1 changed files with 28 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.134 $ -->
|
||||
<!-- $Revision: 1.135 $ -->
|
||||
<chapter id="language.types">
|
||||
<title>Types</title>
|
||||
|
||||
|
@ -1873,15 +1873,20 @@ foreach ($colors as $color) {
|
|||
echo "Do you like $color?\n";
|
||||
}
|
||||
|
||||
/* output:
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
This will output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Do you like red?
|
||||
Do you like blue?
|
||||
Do you like green?
|
||||
Do you like yellow?
|
||||
*/
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
|
@ -1907,8 +1912,14 @@ foreach ($colors as $key => $color) {
|
|||
$colors[$key] = strtoupper($color);
|
||||
}
|
||||
print_r($colors);
|
||||
|
||||
/* output:
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
This will output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
[0] => RED
|
||||
|
@ -1916,10 +1927,8 @@ Array
|
|||
[2] => GREEN
|
||||
[3] => YELLOW
|
||||
)
|
||||
*/
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
|
@ -1931,18 +1940,22 @@ Array
|
|||
<?php
|
||||
$firstquarter = array(1 => 'January', 'February', 'March');
|
||||
print_r($firstquarter);
|
||||
|
||||
/* output:
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
This will output:
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
[1] => 'January'
|
||||
[2] => 'February'
|
||||
[3] => 'March'
|
||||
)
|
||||
*/
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
<example>
|
||||
|
|
Loading…
Reference in a new issue