Note about uninitialized variables (#19289)

* Update index.md

Note about uninitialized variables.

* Update index.md
This commit is contained in:
Przemysław Wolski
2018-10-16 06:52:05 +02:00
committed by Quincy Larson
parent 598f0c4e8a
commit 107eed4a76

View File

@ -27,5 +27,4 @@ In PHP, a variable starts with the $ sign, followed by the name of the variable.
?>
```
Variable lifecycle: Before a variable is used, it has no existence. It is unset. So you can't use it by writing isset($variable) before using it.
Variable lifecycle: In PHP variables have a default value. If a variable is not declared before you attempt to use it, its value will be NULL. It is unset. So you can't use it by writing `isset($variable)` before using it.