Skip to content
Advertisement

Call method by string?

JavaScript

This doesn’t work:

JavaScript

Is the only possibility to use call_user_func();?

Advertisement

Answer

Try:

JavaScript

Be sure to check if the action is allowed and it is callable

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement