note 12623 deleted from functions.returning-values by aharvey
| From: | aharvey@php.net | Date: | Wed, 05 Sep 2012 02:14:14 +0000 |
| Subject: | note 12623 deleted from functions.returning-values by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190506@lists.php.net to get a copy of this message | ||
Note Submitter: php at control-escape dot com
----
PHP functions that do not explicitly return a value will be 'void', that is, they return
'null'. C programmers will be accustomed to this already, but folks coming from Perl may
expect the return value of a function to be the return value of the last expression evaluated inside
the function, as is the case with Perl. Not so.