Re: [PHP] php equivalent to asp's instr()

2003-08-28 Thread David Otton
On Wed, 27 Aug 2003 14:07:34 -0700, you wrote: >I don't know why but I've had the darndest time trying to find an easy >equivalent of asp's InStr() function in PHP. I know there is >preg_match(), strpos(), and strstr(), but none of them work like I want >them to. > >In fact, except for maybe preg_

RE: [PHP] php equivalent to asp's instr()

2003-08-28 Thread Cody Phanekham
Chris, Ive modified your sample code to use strstr() and it works fine. maybe you've mixed the $haystack and $needle around ? > -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: Thursday, 28 August 2003 07:08 > To: [EMAIL PROTECTED] > Subject: [PHP] php equiv