Re: IF statement question...
| From: | Curt Zirzow | Date: | Wed, 19 May 2004 21:56:50 +0000 |
| Subject: | Re: IF statement question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186564@lists.php.net to get a copy of this message | ||
* Thus wrote Jay Blanchard (jay.blanchard@niicommunications.com):
> [snip]
> strpos() : 0.19018315076828
> preg_match() : 0.26157474517822
> in_array() : 0.26403407096863
> [/snip]
>
> Very interesting...thanks!
>
So if we're not going to search though a string 10,000 times you'll
save ~0.000007139159440994 seconds. or am I missing something?
Curt
--
"I used to think I was indecisive, but now I'm not so sure."