[PHP] Re: Best way to check for some certain text in a string

2002-08-21 Thread Bogdan Stancescu
José Jeria wrote: > "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >>If you don't need regexps, use strpos. Make sure you read the > > > Can you give me any particular reason why strpos is better? http://php.weblogs.com/discuss/msgReader

[PHP] Re: Best way to check for some certain text in a string

2002-08-21 Thread José Jeria
"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If you don't need regexps, use strpos. Make sure you read the Can you give me any particular reason why strpos is better? > documentation though - if $nav->userAgent starts with "search for thi

[PHP] Re: Best way to check for some certain text in a string

2002-08-21 Thread Bogdan Stancescu
If you don't need regexps, use strpos. Make sure you read the documentation though - if $nav->userAgent starts with "search for this", your code will return false. Bogdan José Jeria wrote: > I want to find a certain text in a string and i want it to return me a > boolean. > What is the best th