On 29.05.2007 19:30, Richard Quadling wrote:
As PHP is loosely typed, "1"==1 is fine.
Right, but that's not true for bitwise operators.
Try this:
<?php
$a = 111;
$a |= 50;
var_dump($a);
?>
and this
<?php
$a = "111";
$a |= "50";
var_dump($a);
?>
OR is applied to _characters_ of the string.
Hence I can see no reason to support it at all.
Is it that with Unicode, this looseness is gone?
Nope.
--
Wbr,
Antony Dovgal
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php