note 76637 deleted from language.types.null by bjori
| From: | bjori@php.net | Date: | Tue, 24 Jul 2007 11:11:33 +0000 |
| Subject: | note 76637 deleted from language.types.null by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-128867@lists.php.net to get a copy of this message | ||
Note Submitter: wic
Reason: in docs
----
I just noticed that functions without return-clause implicitly returns NULL. Ie:
$ php -r '
function f() { }
$v = f();
print (is_null($v) ? "is NULL\n" : "not null\n"); '
is NULL