Re: Differences
| From: | Marco Behnke | Date: | Thu, 04 Oct 2012 21:36:46 +0000 |
| Subject: | Re: Differences | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319361@lists.php.net to get a copy of this message | ||
Am 04.10.12 02:48, schrieb David McGlone:
> Hi everyone, I have been playing around with some code the list helped me with
> a while back and I'm not grasping the concept between return and echo and the
> PHP manual doesn't answer this, unless I'm missing something. There is an
> example at the very bottom of PHP's return manual, but it's confusing.
Basically there is only difference, they have nothing in common.
http://de.php.net/echo
echo --- Output one or more strings
http://de.php.net/return
If called from within a function, the /return/ statement immediately
ends execution of the current function, and returns its argument as the
value of the function call. /return/ will also end the execution of an
eval() <http://de.php.net/manual/en/function.eval.php>
statement or
script file.
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc