Re: Codebabes: PHP

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

 



2014-04-29 14:33 GMT+02:00 Tedd Sperling <tedd@xxxxxxxxxxxx>:

> On Apr 28, 2014, at 3:32 PM, Robert Cummings <robert@xxxxxxxxxxxxx> 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@xxxxxxxxxxxx
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
github.com/KingCrunch

[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