note 107844 added to function.isset

From: Date: Fri, 09 Mar 2012 02:20:28 +0000
Subject: note 107844 added to function.isset
Groups: php.notes 
Request: Send a blank email to php-notes+get-186559@lists.php.net to get a copy of this message
Just to reiterate on what everyone has already said before, you should not use wrapper functions for isset. Using a wrapper function will generate a Notice unless you pass the unset variable by reference, in which case it is the equivalent to writing using $var === null (which is a lot faster). Even if you do pass the variable by reference, you could still get notices using multidimensional arrays where isset() would silently return false. ---- Server IP: 117.55.229.1 Probable Submitter: 58.161.120.188 ---- Manual Page -- http://www.php.net/manual/en/function.isset.php Edit -- https://master.php.net/note/edit/107844 Del: integrated -- https://master.php.net/note/delete/107844/integrated Del: useless -- https://master.php.net/note/delete/107844/useless Del: bad code -- https://master.php.net/note/delete/107844/bad+code Del: spam -- https://master.php.net/note/delete/107844/spam Del: non-english -- https://master.php.net/note/delete/107844/non-english Del: in docs -- https://master.php.net/note/delete/107844/in+docs Del: other reasons-- https://master.php.net/note/delete/107844 Reject -- https://master.php.net/note/reject/107844 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186559) next »