note 39529 deleted from function.return by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 01 Feb 2004 17:32:56 +0000 |
| Subject: | note 39529 deleted from function.return by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64514@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
In some cases you don't have to type 'return();'
Like:
<?php
function foo() {
return 1+1;
}
?>
but, you can do that the same way just like this:
<?php
function foo() {
1+1;
}
?>
<?PHP Geek ?>