On Thu, 25 Oct 2001 02:04:14 -0700 (PDT) impersonator of [EMAIL PROTECTED]
(Rasmus Lerdorf) planted &I saw in php.general:

>  if(strpos("abcdef","abc")) { ... }
>
>and then be confused that the condition appeared not to be met.  What they 
>actually should have done was:
>
>  if(strpos("abcdef","abc")!==false) { ... }
>
Or better yet, i think:

 if(is_int(strpos(..))){..}

coz this way it should not depend on php version (whereus === and !== do
depend), i think:)

-- 
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