Re: Codebabes: PHP
| From: | Sebastian Krebs | Date: | Tue, 29 Apr 2014 12:45:26 +0000 |
| Subject: | Re: Codebabes: PHP | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323215@lists.php.net to get a copy of this message | ||
2014-04-29 14:33 GMT+02:00 Tedd Sperling <tedd@sperling.com>:
> On Apr 28, 2014, at 3:32 PM, Robert Cummings <robert@interjinn.com> wrote:
> > On 14-04-28 03:30 PM, Robert Cummings wrote:
> >> They should push the use of echo over print since it's a language
> >> construct and not a function thus it benefits from no function overhead.
> >>
> >> Cheers,
> >> Rob.
> >
> > I'd like to retract this comment :) Apparent print is not a function.
> Didn't it used to be?
> >
> > Cheers,
> > Rob.
> > --
>
> Nope, you can't retract it. :-)
>
> As for "print" being a function or construct, I dunno -- what's the
> difference?
>
In the real world: You can never use functions without the paranthesis, but
you can never use language constructs as callbacks.
array_map($titles, 'echo'); // crash
>
> Cheers,
>
> tedd
>
>
> _______________
> tedd sperling
> tedd@sperling.com
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
github.com/KingCrunch