note 91459 added to function.return
| From: | MichaelClark at osu1 dot php dot net | Date: | Wed, 10 Jun 2009 22:33:54 +0000 |
| Subject: | note 91459 added to function.return | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156756@lists.php.net to get a copy of this message | ||
<?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.
----
Server IP: 217.160.72.57
Probable Submitter: 209.90.77.5
----
Manual Page -- http://www.php.net/manual/en/function.return.php
Edit -- https://master.php.net/note/edit/91459
Del: integrated -- https://master.php.net/note/delete/91459/integrated
Del: useless -- https://master.php.net/note/delete/91459/useless
Del: bad code -- https://master.php.net/note/delete/91459/bad+code
Del: spam -- https://master.php.net/note/delete/91459/spam
Del: non-english -- https://master.php.net/note/delete/91459/non-english
Del: in docs -- https://master.php.net/note/delete/91459/in+docs
Del: other reasons-- https://master.php.net/note/delete/91459
Reject -- https://master.php.net/note/reject/91459
Search -- https://master.php.net/manage/user-notes.php