Re: [PHP] String matching for sample code doesn't work....
* Thus wrote Scott Fletcher ([EMAIL PROTECTED]): > Hi Everyone! > > --snip-- >$res_str = "Whoof"; > >for ($i=0;$i<100;$i++) >{ > if (substr($res_str, $i, 9) == "
[PHP] String matching for sample code doesn't work....
Hi Everyone! I'm not really sure why does this simple script not work. When I run the code, the loop kept going until it timed out. I'll enclose the simple code here... --snip-- $res_str = "Whoof"; for ($i=0;$i<100;$i++) { if (substr($res_str, $i, 9) == "