Uranium-235
09-17-2002, 03:27 PM
ok. Gryph and someone else I know can't figure out why this is...
but from what I can tell PHP has a bad tendancy to reverse the logical operator when if the two compairson statements use not. for instance...
if(substr($domain_array[$i], 0, 1) != "#" && substr($domain_array[$i], 0, 1) != "\n")
now the substr($domain_array[$i], 0, 1) can be eather "#" or "\n" but not both. So a OR statement would be used.
However when ever I use an OR statement it does not work (false every time)
so when I Switch and use an AND statement it works just fine. (but it shouldnet, right?)
?
but from what I can tell PHP has a bad tendancy to reverse the logical operator when if the two compairson statements use not. for instance...
if(substr($domain_array[$i], 0, 1) != "#" && substr($domain_array[$i], 0, 1) != "\n")
now the substr($domain_array[$i], 0, 1) can be eather "#" or "\n" but not both. So a OR statement would be used.
However when ever I use an OR statement it does not work (false every time)
so when I Switch and use an AND statement it works just fine. (but it shouldnet, right?)
?