Re: php5 call by refference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux