mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- 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:
parent
e9af69cae5
commit
241bed9350
1 changed files with 22 additions and 2 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue