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

Posted by B.r.K.o.N.j.A on 09/28/49 11:51

example code

function myfunc1()
{
return myfunc2();
}

function myfunc2()
{
return myfunc3();
}

function myfunc3()
{
return very_large_string; // let's say that very large string is 30kb
of data
}


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

Best regards,
--

B.r.K.o.N.j.A = Bionic Robotic Knight Optimized for Nocturnal Judo and
Assasination

 

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

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