On Tue, 17 Apr 2001 16:06:47 -0500, Boget, Chris
([EMAIL PROTECTED]) 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().


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to