note 91459 deleted from function.return by danbrown
| From: | danbrown@php.net | Date: | Wed, 10 Jun 2009 22:34:51 +0000 |
| Subject: | note 91459 deleted from function.return by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156757@lists.php.net to get a copy of this message | ||
Note Submitter: Michael Clark
----
<?php
function test() { $y = 6*7; }
$x = test();
echo ($x === null?'null':'not null')."\n";
echo ($x === false?'not null':'');
echo ($x === 0?'not null':'');
echo ($x === ''?'not null':'');
echo ($x === array()?'not null':'');
?>
Output: null
This seemed to me to be the obvious place to find that information.