Posted by Mladen Gogala on 11/23/41 11:51
B.r.K.o.N.j.A wrote:
> print myfunc1();
>
> The question is, would these 30Kb of data be copied into each function
> wasting resources or only reference to these data would be propagated to
> myfunc1? PHP version is 5.0.x
Andy replied below so I will not repeat his answer but will only add
that you can explicitly declare arguments to be accessed by reference, as in
function myfunct(&$foobar)
Also, global variables can be used to minimize stack manipulation.
--
Mladen Gogala
http://www.mgogala.com
[Back to original message]
|