strcmp() versus ==

From: Date: Mon, 16 Mar 2009 20:38:08 +0000
Subject: strcmp() versus ==
Groups: php.general 
Request: Send a blank email to php-general+get-290134@lists.php.net to get a copy of this message
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 comparisons? Or am I missing/misreading something? Paul -- Paul M. Foster

« previous php.general (#290134) next »