Re: Why is the php loop, 'for()', so slow????
| From: | Curt Zirzow | Date: | Thu, 20 Nov 2003 01:06:24 +0000 |
| Subject: | Re: Why is the php loop, 'for()', so slow???? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170365@lists.php.net to get a copy of this message | ||
Scott,
Please dont post 500+ lines of stuff to the list. You only
needed to post the relevent code relevent to the subject at hand.
* Thus wrote Scott Fletcher (scott@abcoa.com):
>
> for ($i=1;$i<strlen($res_str);$i++)
>
> {
>
> if (substr($res_str, $i, 9) == "<![CDATA[")
You should really use strpos() instead of looking for this in php, it
will increase the performance of your script.
Curt
--
"My PHP key is worn out"
PHP List stats since 1997:
http://zirzow.dyndns.org/html/mlists/