What is faster: write PHP code using "functions" or writing it as pure script?
Posted
by Ole Jak
on Stack Overflow
See other posts from Stack Overflow
or by Ole Jak
Published on 2010-05-06T19:58:32Z
Indexed on
2010/05/06
20:08 UTC
Read the original article
Hit count: 177
What is faster: writing PHP code using functions or writing it as pure script? So, as I see it Apache or any other server will create from PHP code using functions a pure script... I mean we had:
function foo($a, $b){ return ($a + $b); echo foo(4, 5)}
and Apache will turn it into something like:
echo (5 + 4)
Or will it?
© Stack Overflow or respective owner