Re: references

From: Date: Tue, 31 Jul 2001 20:19:56 +0000
Subject: Re: references
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60506@lists.php.net to get a copy of this message
scott [gts] wrote: > i've been reading over the docs on references, and i > can't see anyway to pass around functions as references. > i know how to do this easily with perl, but i cannot > seem to find the correct syntax for creating a reference > to a function in PHP. >[..] > any and all help is appreciated. I dont't think there is something like that in PHP, but variable functions might help you: http://php.net/manual/en/functions.variable-functions.php call_user_func() is often cleaner, though. http://php.net/manual/en/ref.funchand.php Also have a look at call_user_method() and the other functions in this section of the manual. regards Wagner -- Madness takes its toll. Please have exact change.

« previous php.general (#60506) next »