I would like to create a web service in PHP which can be consumed by different consumers (Web page, Android device, iOS device).
I come from a Microsoft background s
Easiest way in PHP is to use GET/POST as data-in and echo as data-out. Here's a sample:
echo
Save this as test.php and go to http://localhost/test.php?method=add&a=2&b=3 (or wherever your webserver is) and it should say 5.
http://localhost/test.php?method=add&a=2&b=3
5