ajax php server side code

ajax php server side code

I read jQuery document regarding ajax.
It says that I need pass a server side php file to ajax.
If this is the case then I need one php file for one ajax function.
Is it possible to pass a php file and function to ajax then I have have
a couple functions in the same php file.

like the following example,

$.ajax( "example.php?Method=Myfunction"&MyParam)

or I have to use

$.ajax("example.php")


Your information and help is great appreciated,

regards,

iccsi,