I want to create a Restful Web service in Php which returns json format. So that Can be consumed from other mobile and Web Applications.
I wanted to Create a Get Method.
I want to create a Restful Web service in Php which returns json format. So that Can be consumed from other mobile and Web Applications.
I wanted to Create a Get Method.
To send a json response you have to serialize the content. In order for doing it you can use jms/serializer, here you can find the documentation for this library. I hope it helps