note 63669 added to language.types.null
| From: | chernyshevsky at hotmail dot com | Date: | Tue, 28 Mar 2006 05:58:47 +0000 |
| Subject: | note 63669 added to language.types.null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106799@lists.php.net to get a copy of this message | ||
Another way to create a variable of type NULL is the unset cast. Example:
$a = (unset) "Hello world";
A great way to confuse your collegue ;-)
----
Server IP: 64.71.164.2
Probable Submitter: 69.143.250.211
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/language.types.null.php
Edit -- http://master.php.net/note/edit/63669
Del: integrated -- http://master.php.net/note/delete/63669/integrated
Del: useless -- http://master.php.net/note/delete/63669/useless
Del: bad code -- http://master.php.net/note/delete/63669/bad+code
Del: spam -- http://master.php.net/note/delete/63669/spam
Del: non-english -- http://master.php.net/note/delete/63669/non-english
Del: in docs -- http://master.php.net/note/delete/63669/in+docs
Del: other reasons-- http://master.php.net/note/delete/63669
Reject -- http://master.php.net/note/reject/63669
Search -- http://master.php.net/manage/user-notes.php