note 26660 deleted from function.array-unshift by tix
| From: | tix@php.net | Date: | Fri, 08 Nov 2002 13:46:58 +0000 |
| Subject: | note 26660 deleted from function.array-unshift by tix | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39159@lists.php.net to get a copy of this message | ||
Does this command parse by reference or by value? I need one that passes by reference, how would I
do this if I cant with this function? Also, does func_get_args get by ref or by val? I also need
ref!
I use the following code:
class someclass {
var $_sub = new randomClass();
function sub() {
$args = func_get_args();
$command = array_shift($args);
array_unshift($args, $this);
return $this->_sub->call($command, $args);
}
}