note 13019 deleted from function.isset.php by danbeck

From: Date: Thu, 21 Jun 2001 20:19:13 +0000
Subject: note 13019 deleted from function.isset.php by danbeck
Groups: php.notes 
Request: Send a blank email to php-notes+get-14542@lists.php.net to get a copy of this message
This does not work: if (isset($HTTP_POST_VARS)) ... to determine if anything was posted to a page. It is set as an array (albeit one with no members), and isset() and empty() both think it is set or non-empty. Use this instead: if (sizeof($HTTP_POST_VARS)) ... This works with any of the PHP arrays like that; e.g., $HTTP_COOKIE_VARS, etc.

« previous php.notes (#14542) next »