The client (JS) has several methods that it can use when sending to the server by AJAX ('method =' + methodValue).
The server (PHP), in turn, processes $ _REQEST (because data can be sent by the POST method and GET). Depending on the method, the script must execute one or another code.
Question: How to organize the check of $ _REQEST for the presence of a 'method'a, if it is not known which method will be used for?
call_user_funcphp.net/manual/rucall_user_func... and example number 4 .......call_user_func(array('className', 'methodName'));- calls methodmethodNamein classclassName..... parameters can also be passed - Alexey Shimansky