[PHP] Re: strcmp() versus ==

2009-03-17 Thread Shawn McKenzie
Clancy wrote: > On Mon, 16 Mar 2009 17:06:35 -0500, nos...@mckenzies.net (Shawn McKenzie) > wrote: > >> Shawn McKenzie wrote: >>> Paul M Foster wrote: I had never completely read over the rules with regard to comparisons in PHP, and was recently alarmed to find that $str1 == $str2 might

[PHP] Re: strcmp() versus ==

2009-03-17 Thread Clancy
On Mon, 16 Mar 2009 17:06:35 -0500, nos...@mckenzies.net (Shawn McKenzie) wrote: >Shawn McKenzie wrote: >> Paul M Foster wrote: >>> I had never completely read over the rules with regard to comparisons in >>> PHP, and was recently alarmed to find that $str1 == $str2 might not >>> compare the way I

Re: [PHP] Re: strcmp() versus ==

2009-03-17 Thread Robert Cummings
On Tue, 2009-03-17 at 08:09 +0200, Alpár Török wrote: > 2009/3/17 Shawn McKenzie : > > Shawn McKenzie wrote: > >> Paul M Foster wrote: > >>> I had never completely read over the rules with regard to comparisons in > >>> PHP, and was recently alarmed to find that $str1 == $str2 might not > >>> compa

Re: [PHP] Re: strcmp() versus ==

2009-03-16 Thread Alpár Török
2009/3/17 Shawn McKenzie : > Shawn McKenzie wrote: >> Paul M Foster wrote: >>> I had never completely read over the rules with regard to comparisons in >>> PHP, and was recently alarmed to find that $str1 == $str2 might not >>> compare the way I thought they would. Is it common practice among PHP >

[PHP] Re: strcmp() versus ==

2009-03-16 Thread Shawn McKenzie
Shawn McKenzie wrote: > Paul M Foster wrote: >> I had never completely read over the rules with regard to comparisons in >> PHP, and was recently alarmed to find that $str1 == $str2 might not >> compare the way I thought they would. Is it common practice among PHP >> coders to use strcmp() instead

[PHP] Re: strcmp() versus ==

2009-03-16 Thread Shawn McKenzie
Paul M Foster wrote: > I had never completely read over the rules with regard to comparisons in > PHP, and was recently alarmed to find that $str1 == $str2 might not > compare the way I thought they would. Is it common practice among PHP > coders to use strcmp() instead of == in making string compa