Re: Differences

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
echoOutput 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() statement or script file.


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux