RE: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Ford, Mike
On 17 November 2006 16:50, Stut wrote: > > > Your basic misunderstanding is that === is the opposite of !== > > > which it's not. Complete rubbish -- it so absolutely is! If $a===$b, then !($a===$b) is the same as $a!==$b, QED. > > >(INTEGER === true) will always be false because the type

Re: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Stut
Ok, just to shut you all up, I managed to convince the OP earlier today, but it never made it to the list... Michael wrote: At 02:58 AM 11/17/2006 , Stut wrote: Michael wrote: This will be my last post on this thread of discussion. Thanks to all who replied, I have it figured out. I

Re: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread tedd
At 2:54 AM -0700 11/17/06, Michael wrote: Logic dictates that if something evaluates to NOT FALSE it must be TRUE. Regardless of the type, regardless of the species, breed, flavor etc. Not true -- it depends upon your reference/environment. For example, NULL is neither true nor false in MySQL.

Re: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Jochem Maas
Robert Cummings wrote: > On Fri, 2006-11-17 at 17:29 +0100, Jochem Maas wrote: >> Robert Cummings wrote: >>> On Fri, 2006-11-17 at 02:54 -0700, Michael wrote: This will be my last post on this thread of discussion. Thanks to all who replied, I have it figured out. I guess m

Re: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Robert Cummings
On Fri, 2006-11-17 at 17:29 +0100, Jochem Maas wrote: > Robert Cummings wrote: > > On Fri, 2006-11-17 at 02:54 -0700, Michael wrote: > >> This will be my last post on this thread of discussion. > >> > >> Thanks to all who replied, I have it figured out. > >> > >> I guess my only problem with the wa

Re: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Jochem Maas
Robert Cummings wrote: > On Fri, 2006-11-17 at 02:54 -0700, Michael wrote: >> This will be my last post on this thread of discussion. >> >> Thanks to all who replied, I have it figured out. >> >> I guess my only problem with the way the !== and === operators work in this >> situation is this: >> >

Re: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Robert Cummings
On Fri, 2006-11-17 at 02:54 -0700, Michael wrote: > This will be my last post on this thread of discussion. > > Thanks to all who replied, I have it figured out. > > I guess my only problem with the way the !== and === operators work in this > situation is this: > > Logic dictates that if somet

RE: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Brad Fuller
iday, November 17, 2006 7:15 AM > To: Michael > Cc: php-general@lists.php.net > Subject: RE: [PHP] odd behavior of stripos() with === operator *LAST POST* > > On 17 November 2006 09:55, Michael wrote: > > > This will be my last post on this thread of discussion. > > &g

RE: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Ford, Mike
On 17 November 2006 09:55, Michael wrote: > This will be my last post on this thread of discussion. > > Thanks to all who replied, I have it figured out. > > I guess my only problem with the way the !== and === > operators work in this situation is this: > > Logic dictates that if something eva

Re: [PHP] odd behavior of stripos() with === operator *LAST POST*

2006-11-17 Thread Michael
This will be my last post on this thread of discussion. Thanks to all who replied, I have it figured out. I guess my only problem with the way the !== and === operators work in this situation is this: Logic dictates that if something evaluates to NOT FALSE it must be TRUE. Regardless of the typ