cvs: phpdoc /en/language operators.xml
| From: | Daniel Convissor | Date: | Sun, 19 Apr 2009 03:18:20 +0000 |
| Subject: | cvs: phpdoc /en/language operators.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3790@lists.php.net to get a copy of this message | ||
danielc Sun Apr 19 03:18:20 2009 UTC
Modified files:
/phpdoc/en/language operators.xml
Log:
* userinput -> literal: don't want the line break that comes after userinput.
* gmp_add() -> gmp_and(): well, because it's the right function.
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/operators.xml?r1=1.141&r2=1.142&diff_format=u
Index: phpdoc/en/language/operators.xml
diff -u phpdoc/en/language/operators.xml:1.141 phpdoc/en/language/operators.xml:1.142
--- phpdoc/en/language/operators.xml:1.141 Mon Apr 13 16:04:20 2009
+++ phpdoc/en/language/operators.xml Sun Apr 19 03:18:19 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.141 $ -->
+<!-- $Revision: 1.142 $ -->
<chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook">
<title>Operators</title>
<simpara>
@@ -444,9 +444,9 @@
<para>
Use parentheses to ensure the desired
<link linkend="language.operators.precedence">precedence</link>.
- For example, <userinput>$a & $b == true</userinput> evaluates
+ For example, <literal>$a & $b == true</literal> evaluates
the equivalency then the bitwise and; while
- <userinput>($a & $b) == true</userinput> evaluates the bitwise and
+ <literal>($a & $b) == true</literal> evaluates the bitwise and
then the equivalency.
</para>
<para>
@@ -471,7 +471,7 @@
<computeroutput>00000000000000000111011111111111</computeroutput>
Then taking the value of E_NOTICE...
<computeroutput>00000000000000000000000000001000</computeroutput>
-... and inverting it via <userinput>~</userinput>:
+... and inverting it via <literal>~</literal>:
<computeroutput>11111111111111111111111111110111</computeroutput>
Finally, it uses AND (&) to find the bits turned
on in both values:
@@ -480,7 +480,7 @@
</para>
<para>
<literallayout>
-Another way to accomplish that is using XOR (<userinput>^</userinput>)
+Another way to accomplish that is using XOR (<literal>^</literal>)
to find bits that are on in only one value or the other:
<userinput>E_ALL ^ E_NOTICE</userinput>
</literallayout>
@@ -502,7 +502,7 @@
<computeroutput>00000000000000000000000000000001</computeroutput>
and
<computeroutput>00000000000000000001000000000000</computeroutput>
-using the OR (<userinput>|</userinput>) operator
+using the OR (<literal>|</literal>) operator
to get the bits turned on in either value:
<computeroutput>00000000000000000001000000000001</computeroutput>
</literallayout>
@@ -1014,7 +1014,7 @@
See also
<function>pack</function>,
<function>unpack</function>,
- <function>gmp_add</function>,
+ <function>gmp_and</function>,
<function>gmp_or</function>,
<function>gmp_xor</function>,
<function>gmp_testbit</function>,