note 107113 added to function.isset

From: Date: Sun, 08 Jan 2012 15:56:21 +0000
Subject: note 107113 added to function.isset
Groups: php.notes 
Request: Send a blank email to php-notes+get-185459@lists.php.net to get a copy of this message
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" ?> ---- Server IP: 192.41.42.26 Probable Submitter: 74.99.128.43 ---- Manual Page -- http://www.php.net/manual/en/function.isset.php Edit -- https://master.php.net/note/edit/107113 Del: integrated -- https://master.php.net/note/delete/107113/integrated Del: useless -- https://master.php.net/note/delete/107113/useless Del: bad code -- https://master.php.net/note/delete/107113/bad+code Del: spam -- https://master.php.net/note/delete/107113/spam Del: non-english -- https://master.php.net/note/delete/107113/non-english Del: in docs -- https://master.php.net/note/delete/107113/in+docs Del: other reasons-- https://master.php.net/note/delete/107113 Reject -- https://master.php.net/note/reject/107113 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185459) next »