say i have the following php script:
<?
if (!is_int(strpos("a","aaa")))
// if (strpos("a","aaa") === false)
print "no match";
else print "match";
?>
when i run it, i am told there is no match, when there actually is.
it doesn't matter which if statement i use (the uncommented out one,
or the commented out one) - i get the same thing. further, if i
change "aaa" to "xxx", it doesn't, all of a sudden, say "match"
(indicating that i would just need to swap the statements) - it
*still* says no match.
so, any ideas as to what's wrong with my code? any help would be
appreciated - thanks :)