Re: Re: PHP 4.0 Bug #3017 Updated: if(strpos("Mozilla/4.7", "Mozilla") evaluates false!!!
| From: | rasmus@php.net | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Re: PHP 4.0 Bug #3017 Updated: if(strpos("Mozilla/4.7", "Mozilla") evaluates false!!! | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-13912@lists.php.net to get a copy of this message | ||
> that strpos("Mozilla/4.7", "Mozilla") is 0 should not mean that it's
> not
> found, instead should mean that it's found right on the 0th position,
> and therefore in an if-clause should evaluate to true.
It doesn't return 0. It returns false or ""
-Rasmus