You are here: Re: large string... « PHP Programming Language « IT news, forums, messages
Re: large string...

Posted by Mladen Gogala on 11/09/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация