Re: [PHP] Better method than stristr

2006-05-29 Thread Richard Lynch
On Mon, May 29, 2006 2:27 pm, Steven Osborn wrote: > Can someone please advise a faster solution to do what I'm doing > below? All I need to be able to do is determine if any of the > strings in the array are contained in $q. The method I have works, > but I'm sure its not the most

Re: [PHP] Better method than stristr

2006-05-29 Thread tedd
At 2:27 PM -0500 5/29/06, Steven Osborn wrote: Can someone please advise a faster solution to do what I'm doing below? All I need to be able to do is determine if any of the strings in the array are contained in $q. The method I have works, but I'm sure its not the most efficient way to do

Re: [PHP] Better method than stristr

2006-05-29 Thread Robert Cummings
On Mon, 2006-05-29 at 15:48, Jochem Maas wrote: > Steven Osborn wrote: > > Can someone please advise a faster solution to do what I'm > > doing below? All I need to be able to do is determine if any of the > > strings in the array are contained in $q. The method I have works, but >

Re: [PHP] Better method than stristr

2006-05-29 Thread Jochem Maas
Steven Osborn wrote: Can someone please advise a faster solution to do what I'm doing below? All I need to be able to do is determine if any of the strings in the array are contained in $q. The method I have works, but I'm sure its not the most efficient way to do it. $di

[PHP] Better method than stristr

2006-05-29 Thread Steven Osborn
Can someone please advise a faster solution to do what I'm doing below? All I need to be able to do is determine if any of the strings in the array are contained in $q. The method I have works, but I'm sure its not the most efficient way to do it. $dirtyWord = array("UNION","LOAD_FILE