I'm going to create a Restful web service API using PHP. I've googled and found how to create a rest client, but I want to know how to create rest server instead.
I already have a MySQL database to retrieve the data but I don't know how to output my results in XML format.