note 31854 added to language.operators

From: Date: Tue, 06 May 2003 17:56:49 +0000
Subject: note 31854 added to language.operators
Groups: php.notes 
Request: Send a blank email to php-notes+get-47594@lists.php.net to get a copy of this message
How about using operator == for string-comparision. Is it correct in php, comparing if($string1==$string2) ... Sure, strcmp($string1, $string2) is better programming but the first sample seems more intuitive... Thanks :) from Switzerland -- http://www.php.net/manual/en/language.operators.php http://master.php.net/manage/user-notes.php?action=edit+31854 http://master.php.net/manage/user-notes.php?action=delete+31854 http://master.php.net/manage/user-notes.php?action=reject+31854

« previous php.notes (#47594) next »