ID: 25533 Updated by: [EMAIL PROTECTED] Reported By: spagmoid at yahoo dot com -Status: Open +Status: Bogus Bug Type: Strings related Operating System: WinXP PHP Version: 4.3.3 New Comment:
You can't logically OR strings. Now, forget about it ;) Previous Comments: ------------------------------------------------------------------------ [2003-09-16 11:00:47] spagmoid at yahoo dot com No. I want a 3rd opinion. ------------------------------------------------------------------------ [2003-09-16 09:48:42] [EMAIL PROTECTED] No. Now forget about it. ------------------------------------------------------------------------ [2003-09-15 23:15:50] spagmoid at yahoo dot com if $A+$B works, then $A|$B should work as well. '|' is not '.' ------------------------------------------------------------------------ [2003-09-15 22:55:58] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. echo (int)$A|(int)$B; ------------------------------------------------------------------------ [2003-09-15 22:52:33] spagmoid at yahoo dot com Uhh.. "do not"? That's your solution? You're kidding, right? OK how about this. Values returned from mysql. $A = "146"; $B = "2"; echo $A|$B; result: 346 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25533 -- Edit this bug report at http://bugs.php.net/?id=25533&edit=1