For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > October 2006 > #39159 [Opn->Bgs]: Error on Bitwise Operators









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #39159 [Opn->Bgs]: Error on Bitwise Operators
derick@php.net

2006-10-14, 7:56 am

ID: 39159
Updated by: derick@php.net
Reported By: lturmelle at guamcell dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2006-10-14 10:41:07] 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"




------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=39159&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com