strcmp() versus ==

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux