note 97229 deleted from language.variables by degeberg
| From: | degeberg@php.net | Date: | Fri, 09 Apr 2010 08:28:14 +0000 |
| Subject: | note 97229 deleted from language.variables by degeberg | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168062@lists.php.net to get a copy of this message | ||
Note Submitter: Aravind PAdmanabhan
----
There is no declaration of PHP Variables as such.
A Variable is defined with its first assignment.
for eg.
$a = 5; // This is a declaration.
Note if you try to use an un-initialized variable. PHP gives a warning. "PHP Notice: Undefined
variable"
To avoid this you can check if a variableis defined by using isset command.