cvs: phpdoc /en/language operators.xml
| From: | Etienne Kneuss | Date: | Sun, 04 May 2008 20:54:39 +0000 |
| Subject: | cvs: phpdoc /en/language operators.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1602@lists.php.net to get a copy of this message | ||
colder Sun May 4 20:54:39 2008 UTC
Modified files:
/phpdoc/en/language operators.xml
Log:
Add example with mixed types for ^
http://cvs.php.net/viewvc.cgi/phpdoc/en/language/operators.xml?r1=1.124&r2=1.125&diff_format=u
Index: phpdoc/en/language/operators.xml
diff -u phpdoc/en/language/operators.xml:1.124 phpdoc/en/language/operators.xml:1.125
--- phpdoc/en/language/operators.xml:1.124 Wed Apr 23 03:44:08 2008
+++ phpdoc/en/language/operators.xml Sun May 4 20:54:38 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.124 $ -->
+<!-- $Revision: 1.125 $ -->
<chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook">
<title>Operators</title>
<simpara>
@@ -392,6 +392,12 @@
echo "hallo" ^ "hello"; // Outputs the ascii values #0 #4 #0 #0 #0
// 'a' ^ 'e' = #4
+
+echo 2 ^ "3"; // Outputs 1
+ // 2 ^ ((int)"3") == 1
+
+echo "2" ^ 3; // Outputs 1
+ // ((int)"2") ^ 3 == 1
?>
]]>
</programlisting>