You are here: Re: [PHP] php5 call by refference « PHP « IT news, forums, messages
Re: [PHP] php5 call by refference

Posted by Jochem Maas on 10/10/71 11:32

Georgi Ivanov wrote:
> Hi,
> AFAIK, in PHP5 one can't call function with function parameters .
> The error is that you only can pass variables by reference.

which means that you can't use a function call as the argument to a
function that required the argument to be passed by reference, if the
argument is not passed by reference then you can use a function call as
the argument directly.

apart from, atleast, func_get_args() which cannot be used directly as a
function argument for some reason I don't fully understand (has to do
with engine internals I believe)

> foo(strlen('aaa'),strlen('bbbb'));
>
> Is there some sort of workaround ?
>

 

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

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