note 91228 deleted from function.strcmp by danbrown

From: Date: Mon, 01 Jun 2009 13:06:58 +0000
Subject: note 91228 deleted from function.strcmp by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156251@lists.php.net to get a copy of this message
Note Submitter: snackzon at gmail dot com ---- Why use strcmp() instead of a normal if? <?php if ($str1 != $str2) { echo 'wrong'; } else { echo 'right'; } ?>

« previous php.notes (#156251) next »