Re: php5 call by refference
| From: | Jochem Maas | Date: | Mon, 21 Nov 2005 10:44:31 +0000 |
| Subject: | Re: php5 call by refference | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226183@lists.php.net to get a copy of this message | ||
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 ?