note 18228 added to function.isset

From: Date: Tue, 15 Jan 2002 11:10:31 +0000
Subject: note 18228 added to function.isset
Groups: php.notes 
Request: Send a blank email to php-notes+get-24836@lists.php.net to get a copy of this message
Here are some conditions and their outcome (true or false) isset("tekst") true ("tekst")!="" true ("tekst") true ("tekst")==NULL false isset(true) true (true)!="" true (true) true (true)==NULL false isset(false) true (false)!="" false (false) false (false)==NULL true isset("") true ("")!="" false ("") false ("")==NULL true isset(0) true (0)!="" false (0) false (0)==NULL true isset(1) true (1)!="" true (1) true (1)==NULL false isset("0") true ("0")!="" true ("0") false ("0")==NULL false isset("1") true ("1")!="" true ("1") true ("1")==NULL false isset(NULL) false (NULL)!="" false (NULL) false (NULL)==NULL true -- http://www.php.net/manual/en/function.isset.php http://master.php.net/manage/user-notes.php?action=edit+18228 http://master.php.net/manage/user-notes.php?action=delete+18228 http://master.php.net/manage/user-notes.php?action=reject+18228

« previous php.notes (#24836) next »