note 80580 rejected from language.operators.bitwise by nlopess

From: Date: Wed, 23 Jan 2008 13:19:08 +0000
Subject: note 80580 rejected from language.operators.bitwise by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-135333@lists.php.net to get a copy of this message
Note Submitter: tolik_ne at mail dot ru ---- 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?

« previous php.notes (#135333) next »