How to build a simple web service API in php

People are looking for a wide variety of data in web sites which means most of the web applications today are not a single stand alone application.  Web services come...