Re: [PHP] Q: Logical assignment with strstr( )

2007-02-23 Thread Richard Lynch
On Fri, February 23, 2007 5:24 am, [EMAIL PROTECTED] wrote: > strstr returns a string (in case the needle is found), > but a boolean if there is no needle in the haystack. As the manual suggests, using the === operator to check for FALSE is probably the best way. > I am trying to make a readable

Re: [PHP] Q: Logical assignment with strstr( )

2007-02-23 Thread Robert Cummings
On Fri, 2007-02-23 at 12:24 +0100, [EMAIL PROTECTED] wrote: > Dear list, > > strstr returns a string (in case the needle is found), > but a boolean if there is no needle in the haystack. > > I am trying to make a readable evaluation of some tests, but this fails > to work as supposed because o