note 107113 deleted from function.isset by googleguy

From: Date: Sat, 19 Jan 2013 03:47:04 +0000
Subject: note 107113 deleted from function.isset by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193248@lists.php.net to get a copy of this message
Note Submitter: dfugi9488 at yahoo dot com ---- it is also worth noting that isset() will return FALSE when its argument is a class attribute that is simply defined with no value given. e.g. <?php class Test { public static $set; public static function setTest() { if(!isset(self::$set)) { return "not set"; }else { return "set"; } } } echo Test::setTest(); //returns "not set" ?>

« previous php.notes (#193248) next »