PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I need to able to run a function from a string passed from a client but I can't get it to work. I've used eval($input) but can't use call_user_func because the parameters count may be different. I need something like:
Better solution? Ahem In fact, not only should you NEVER allow arbitrary user input to be executed as PHP code, simply put, you should just never use eval().