mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
php tags for examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@145971 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d85ff3ebca
commit
b4069f8cdd
1 changed files with 15 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.55 $ -->
|
||||
<!-- $Revision: 1.56 $ -->
|
||||
<chapter id="language.operators">
|
||||
<title>Operators</title>
|
||||
<simpara>
|
||||
|
@ -228,7 +228,11 @@
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$a = ($b = 4) + 5; // $a is equal to 9 now, and $b has been set to 4.
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
@ -242,10 +246,14 @@ $a = ($b = 4) + 5; // $a is equal to 9 now, and $b has been set to 4.
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$a = 3;
|
||||
$a += 5; // sets $a to 8, as if we had said: $a = $a + 5;
|
||||
$b = "Hello ";
|
||||
$b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
@ -531,8 +539,10 @@ $value = @$cache[$key];
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$output = `ls -al`;
|
||||
echo "<pre>$output</pre>";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
@ -725,11 +735,13 @@ AC
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$a = "Hello ";
|
||||
$b = $a . "World!"; // now $b contains "Hello World!"
|
||||
|
||||
$a = "Hello ";
|
||||
$a .= "World!"; // now $a contains "Hello World!"
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
@ -752,12 +764,14 @@ $a .= "World!"; // now $a contains "Hello World!"
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$a = array("a" => "apple", "b" => "banana");
|
||||
$b = array("a" =>"pear", "b" => "strawberry", "c" => "cherry");
|
||||
|
||||
$c = $a + $b;
|
||||
|
||||
var_dump($c);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
|
|
Loading…
Reference in a new issue