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:
Friedhelm Betz 2002-05-28 21:31:56 +00:00
parent 9687cbd778
commit 1f7a1e6048

View file

@ -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 &lt;> $b</entry>
<entry>$a &lt;&gt; $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&gt;Postincrement</h3&gt;";
echo "<h3>Postincrement</h3>";
$a = 5;
echo "Should be 5: " . $a++ . "<br>\n";
echo "Should be 6: " . $a . "<br>\n";