note 27313 added to language.operators.comparison

From: Date: Mon, 02 Dec 2002 01:09:01 +0000
Subject: note 27313 added to language.operators.comparison
Groups: php.notes 
Request: Send a blank email to php-notes+get-40227@lists.php.net to get a copy of this message
Be careful that !== is not the exact opposite of == While == checks only the contents, !== checks both contents and type. The following example will print out both "is empty" and "is not empty": $a = NULL; if ($a == "") {echo "is empty ";} if ($a !== "") {echo "is not empty";} -- http://www.php.net/manual/en/language.operators.comparison.php http://master.php.net/manage/user-notes.php?action=edit+27313 http://master.php.net/manage/user-notes.php?action=delete+27313 http://master.php.net/manage/user-notes.php?action=reject+27313

« previous php.notes (#40227) next »