broken or probably not implement!
| From: | Faisal Nasim | Date: | Fri, 18 Feb 2000 11:36:10 +0000 |
| Subject: | broken or probably not implement! | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10440@lists.php.net to get a copy of this message | ||
Greetings,
PHP could use some more flexibility and some bug fixing!
$str = 10 || 1; // 1
$str = 0 || 1; // 1 ... correct
$str = 10 or 1; // 10 ... correct
$str = 0 or 1; // 0
Either PHP doesn't support them well now, or its completely
broken! Any info?
Perl reports:
10 ... correct
1 ... correct
10 ... correct
0 ... correct, according to the precedence table, I reckon.
Thank you!
-- Faisal