note 44027 deleted from function.isset by nlopess

From: Date: Wed, 14 Jul 2004 10:32:40 +0000
Subject: note 44027 deleted from function.isset by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73207@lists.php.net to get a copy of this message
Note Submitter: Chris ---- Note that: if (!isset($type = $_GET['type'])) { /* invalid, missing type */ } does NOT work (you get a parse error). Instead, you have to do: $type = $_GET['type']; if (!isset($type)) { /* invalid, missing type */ } Which is to say that you cannot do an assignment in an isset() test.

« previous php.notes (#73207) next »