Re: Why is the php loop, 'for()', so slow????

From: Date: Thu, 20 Nov 2003 14:45:45 +0000
Subject: Re: Why is the php loop, 'for()', so slow????
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-170414@lists.php.net to get a copy of this message
I can give the strpos() a shot but I seem to have problem with getting the strpos() to give me two seperate "<!CDATA[[****]]>" tags instead of just hte first one only... Scott "Curt Zirzow" <php-general@zirzow.dyndns.org> wrote in message news:20031120010624.GW1542@bagend.shire... > > 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/

« previous php.general (#170414) next »