note 71710 deleted from function.strcasecmp by nlopess

From: Date: Mon, 18 Dec 2006 11:16:59 +0000
Subject: note 71710 deleted from function.strcasecmp by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-120733@lists.php.net to get a copy of this message
Note Submitter: tech at litigationdataservices dot com ---- The example should have double quotes, otherwise the variables are read literally. <?php $var1 = "Hello"; $var2 = "hello"; if (strcasecmp($var1, $var2) == 0) { echo "$var1 is equal to $var2 in a case-insensitive string comparison"; } ?>

« previous php.notes (#120733) next »