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
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,
2 matches
Mail list logo