note 80106 deleted from function.empty by cmb

From: Date: Sun, 01 Dec 2019 09:21:58 +0000
Subject: note 80106 deleted from function.empty by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213356@lists.php.net to get a copy of this message
Note Submitter: Ed ---- Also, it doesn't appear to mention in the documentation, if a variable hasn't previously been declared, empty also returns true. E.g. var $bar; empty( $bar ); // declared variable returns true. empty( $foo ); // undeclared variable also returns true. The closest the documentation comes to saying this is: "var $var; (a variable declared, but without a value in a class)" which isn't really the same, as the variable doesn't necessarily have to be declared first.

« previous php.notes (#213356) next »