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

Posted by Chung Leong on 11/02/08 11:51

Mladen Gogala wrote:
>
> 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.

It's worth noting that references tend to cause more data copying. When
a referenced variable is passed by value, copy-on-write occurs. When a
"copy" of a value is passed by value, it does not unless the function
called modifies its parameters.

Global variables used within functions are referenced in PHP 4, so the
same rules apply.

 

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

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