- FIx for bug #15380

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@71069 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2002-02-27 13:40:30 +00:00
parent e9af69cae5
commit 241bed9350

View file

@ -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 @@ $b .= "There!"; // sets $b to "Hello There!", just like $b = $b . "There!";
<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">