note 26660 added to function.array-unshift

From: Date: Fri, 08 Nov 2002 13:44:32 +0000
Subject: note 26660 added to function.array-unshift
Groups: php.notes 
Request: Send a blank email to php-notes+get-39158@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); } } -- http://www.php.net/manual/en/function.array-unshift.php http://master.php.net/manage/user-notes.php?action=edit+26660 http://master.php.net/manage/user-notes.php?action=delete+26660 http://master.php.net/manage/user-notes.php?action=reject+26660

« previous php.notes (#39158) next »