Re: Differences
| From: | tamouse mailing lists | Date: | Thu, 04 Oct 2012 03:03:29 +0000 |
| Subject: | Re: Differences | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319352@lists.php.net to get a copy of this message | ||
On Wed, Oct 3, 2012 at 9:57 PM, David McGlone <david@dmcentral.net> wrote:
> Absolutely. I also think I learned that return can also work like echo if the
> code is written correctly.
No, no, no. Return does NOT do the same thing as echo, nor vice versa.
If you do try to make things work this way you are doing things
incorrectly. If you do try to make things work this way and it
actually works, you have gotten lucky, but are still doing it
incorrectly.