Re: String matching for sample code doesn't work....

From: Date: Wed, 19 Nov 2003 20:47:38 +0000
Subject: Re: String matching for sample code doesn't work....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170344@lists.php.net to get a copy of this message
* Thus wrote Scott Fletcher (scott@abcoa.com): > Hi Everyone! > > --snip-- > $res_str = "<Dog Name>Whoof</Dog Name><![CDATA[Whose Dog is > that??]]>"; > > for ($i=0;$i<1000000;$i++) > { > if (substr($res_str, $i, 9) == "<![CDATA[") um.. lookup this function: http://www.php.net/strpos Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/

« previous php.general (#170344) next »