note 17072 deleted from function.call-user-func by jimw

From: Date: Fri, 14 Dec 2001 20:45:20 +0000
Subject: note 17072 deleted from function.call-user-func by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22783@lists.php.net to get a copy of this message
note the following with regard to references: function foo(&$ref) { } $fish=new FishObject(); call_user_func("foo",$fish); This does not work in PHP 4.0.6. It seems the following is necessary to actualy pass a reference: call_user_func("foo",&$fish); (Slight disclaimer, I was doing this on an object var, but I'm guessing it makes no difference on what you call call_user_func.)

« previous php.notes (#22783) next »