[PHP] Call a Function Held in a $_GET Var

2005-04-06 Thread Shaun
Hi, If I have a function name held in a $_GET variable for example ...func=print_user_list how can I call the function dynamically? ie. $_GET['func']() Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Call a Function Held in a $_GET Var

2005-04-06 Thread Josip Dzolonga
Shaun wrote: Hi, If I have a function name held in a $_GET variable for example ...func=print_user_list how can I call the function dynamically? ie. $_GET['func']() Thanks for your help Well, call_user_func() [ http://www.php.net/call_user_func ] will do the job. But that is really bad,