Re: call_user_func and call-time pass-by-reference

From: Date: Thu, 08 Jul 2004 01:45:33 +0000
Subject: Re: call_user_func and call-time pass-by-reference
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-189938@lists.php.net to get a copy of this message
* Thus wrote Andrew Nagy: > Curt Zirzow wrote: > > >* Thus wrote Andrew Nagy: > > > >>How do you use the call_user_func function with call-time > >>pass-by-reference deprecation? > >> > >>For example: > >> > >>function fun(&$arg) { > >> $arg++; > >>} > > ... > > >$func_call = 'fun'; > >$func_call($var); > > > > This does not do what I need. I need to be able to call a dynamic > function name and pass in the parameters with the &. The problem is > this syntax is now deprecated. Did you even try it! Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#189938) next »