PHP and Ionic 2

hi guys

Maybe is not the right place to ask this question i hope i can find help here
I am starting with an ionic 2 app (type script) and i need to connect with php file so far
In my php i have many function :

for example :

function1(x,y){ … return number;}
function2(number from perivous function){ … return flag } and this flag return to my app

so if i need to call the both fuction within the same php file how i can do it and it is necessary the name of variable in the php side must be the same when th do the json step in application

Thank in advance

maybe look into a PHP framework, or atleast look into how frameworks do routing. is a great framework for PHP

i will see thank you for kindest reply :blush: