derick Wed Feb 27 08:40:33 2002 EDT
Modified files:
/phpdoc/en/language operators.xml
Log:
- FIx for bug #15380
Index: phpdoc/en/language/operators.xml
diff -u phpdoc/en/language/operators.xml:1.31 phpdoc/en/language/operators.xml:1.32
--- phpdoc/en/language/operators.xml:1.31 Fri Dec 14 15:44:06 2001
+++ phpdoc/en/language/operators.xml Wed Feb 27 08:40:30 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.31 $ -->
+<!-- $Revision: 1.32 $ -->
<chapter id="language.operators">
<title>Operators</title>
<simpara>
@@ -115,8 +115,28 @@
<title>Bitwise Operators</title>
<simpara>
Bitwise operators allow you to turn specific bits within an
- integer on or off.
+ integer on or off. If both the left- and right-hand parameters are
+ strings, the bitwise operator will operate on the characters in this
+ string.
</simpara>
+ <para>
+ <informalexample>
+ <programlisting>
+<![CDATA[
+<?php
+ echo 12 ^ 9; // Outputs '5'
+
+ echo "12" ^ "9"; // Outputs the Backspace character (ascii 8)
+ // ('1' (ascii 49)) ^ ('9' (ascii 57)) = #8
+
+ echo "hallo" ^ "hello"; // Outputs the ascii values #0 #4 #0 #0 #0
+ // 'a' ^ 'e' = #4
+?>
+]]>
+ </programlisting>
+ </informalexample>
+ </para>
+
<table>
<title>Bitwise Operators</title>
<tgroup cols="3">