I have a PHP file which consists of a number of functions, and when I tried to call one of them via ajax, it executes all the function on that page.
How can I execute only one function at a time via ajax? I am using simple PHP without class-object pattern.