mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
some programmlisting corrections, (I hope) and some entity corrections
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@83925 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9687cbd778
commit
1f7a1e6048
1 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.35 $ -->
|
||||
<!-- $Revision: 1.36 $ -->
|
||||
<chapter id="language.operators">
|
||||
<title>Operators</title>
|
||||
<simpara>
|
||||
|
@ -241,7 +241,7 @@ $b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";
|
|||
</simpara>
|
||||
<para>
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
echo 12 ^ 9; // Outputs '5'
|
||||
|
@ -349,7 +349,7 @@ $b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";
|
|||
<entry>&true; if $a is not equal to $b.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>$a <> $b</entry>
|
||||
<entry>$a <> $b</entry>
|
||||
<entry>Not equal</entry>
|
||||
<entry>&true; if $a is not equal to $b.</entry>
|
||||
</row>
|
||||
|
@ -388,7 +388,7 @@ $b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";
|
|||
Another conditional operator is the "?:" (or ternary) operator,
|
||||
which operates as in C and many other languages.
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
(expr1) ? (expr2) : (expr3);
|
||||
]]>
|
||||
|
@ -536,7 +536,7 @@ echo "<pre>$output</pre>";
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
echo "<h3>Postincrement</h3>";
|
||||
echo "<h3>Postincrement</h3>";
|
||||
$a = 5;
|
||||
echo "Should be 5: " . $a++ . "<br>\n";
|
||||
echo "Should be 6: " . $a . "<br>\n";
|
||||
|
|
Loading…
Reference in a new issue