function call_some_function($function,$args=NULL) { eval("$function($args)"); // Or something like that.. $function(); // also works I think.. } -- // DvDmanDT MSN: dvdmandt€hotmail.com Mail: dvdmandt€telia.com ########################## Please, if you are using windows, you may be infected by Swen. Please go here to find out more: http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED] ########################## "Ian Truelsen" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > What I want to do is to call a function from within a function, but pass > the secondary function name through the first function. Like this: > > function1(function2) > > Then call function2 from within function1. Unfortunately, I have been > unable to figure out the proper syntax for calling the second function. > > Does anyone know if this is possible and what the proper syntax would be > for calling a function from a variable name? > > -- > Ian Truelsen > Email: [EMAIL PROTECTED] > AIM: ihtruelsen > Homepage: http://www.ihtruelsen.dyndns.org
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php