RE: [PHP] Why is this happening
| From: | Mark Maggelet | Date: | Tue, 17 Apr 2001 21:21:39 +0000 |
| Subject: | RE: [PHP] Why is this happening | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49064@lists.php.net to get a copy of this message | ||
On Tue, 17 Apr 2001 16:06:47 -0500, Boget, Chris
(chris.boget@wild.net) wrote:
>> >Ok, I found out what the problem was. I'm still curious
>> >why the problem is occuring.
>> >> if( $tmpArray[errorNumber] & $typesToDisplay ) {
>> you're using the bitwise & when you want the logical &&
>
>No, I actually wanted to use the bitwise &. I wanted to see
>if the "errorNumber" was in $typesToDisplay.
without seeing the code I would guess you should be using in_array().