note 80580 added to language.operators.bitwise

From: Date: Wed, 23 Jan 2008 13:15:41 +0000
Subject: note 80580 added to language.operators.bitwise
Groups: php.notes 
Request: Send a blank email to php-notes+get-135332@lists.php.net to get a copy of this message
I have this code: var_dump(chr(1)<<chr(1)); I expected charecter with code 0x02, but get this result: int(0) In documrntation: "If both the left- and right-hand parameters are strings, the bitwise operator will operate on the characters' ASCII values." Operand '&' and '|' work correctly, but shift NOT WORK. Why? ---- Server IP: 91.196.196.241 Probable Submitter: 92.112.135.10 ---- Manual Page -- http://www.php.net/manual/en/language.operators.bitwise.php Edit -- https://master.php.net/note/edit/80580 Del: integrated -- https://master.php.net/note/delete/80580/integrated Del: useless -- https://master.php.net/note/delete/80580/useless Del: bad code -- https://master.php.net/note/delete/80580/bad+code Del: spam -- https://master.php.net/note/delete/80580/spam Del: non-english -- https://master.php.net/note/delete/80580/non-english Del: in docs -- https://master.php.net/note/delete/80580/in+docs Del: other reasons-- https://master.php.net/note/delete/80580 Reject -- https://master.php.net/note/reject/80580 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135332) next »