note 41723 deleted from language.types.null by danbrown
| From: | danbrown@php.net | Date: | Tue, 19 May 2009 14:21:21 +0000 |
| Subject: | note 41723 deleted from language.types.null by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155742@lists.php.net to get a copy of this message | ||
Note Submitter: pozmu at wp dot pl
----
responding to joemamacow at hotmail dot com comment:
if you are using isset() to check is the variable set, the more logically and clear way to
"delete" the variable is to use unset() (http://www.php.net/unset ) function:
<?php
unset($variable);
?>
Of course setiing variable value to NULL is also OK.