php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #39159 Error on Bitwise Operators
Submitted: 2006-10-14 10:41 UTC Modified: 2006-10-14 10:45 UTC
From: lturmelle at guamcell dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lturmelle at guamcell dot com
New email:
PHP Version: OS:

 

 [2006-10-14 10:41 UTC] lturmelle at guamcell dot com
Description:
------------
Example says:
echo "12" ^ "9"; // Outputs the Backspace character (ascii 8)
                 // ('1' (ascii 49)) ^ ('9' (ascii 57)) = #8

the "12" should be "1"



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-14 10:45 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

why?
49 is bin 110001
58 is bin 111001

110001 ^ 111001 = 001000 = ascii 8 = the backspace character.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 02:01:33 2025 UTC