Webservices in PHP (How to create user registration/signup Webservice)
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh99UsBbqn844hYWg1WGfJsguA-71_--fwbst3IrxG5JHbbHna17hT7cHJzZtpxWJAlXrSqV2fwgtdYr08lp2VOukuiFtNKQ-gZD4gPudJA62_ezFO7O7AwjHeB3ydAnDxGSK36HNAePeCBo9NakUUfK4kecq2ujXm9nH-B9cMzw8JLbpCVR0UuGTMt/s320/webservicesinphp.png)
What is Webservices? Webservices are used to allow users to access data from different sources like the Android app, IOS app, website etc from a centralized database. We can create a web service through two methods : SOAP (Simple Object Access Protocol) REST (Representational State Transfer) SOAP (Simple Object Access Protocol) SOAP : Simple Object Access Protocol. SOAP is easy to read because SOAP based on XML. SOAP is the XML based format for sending and receiving data. REST (Representational State Transfer) REST : Representational State Transfer. It is an architectural style that run over HTTP. REST webservices generate status code response in JSON & XML. REST support all HTTP methods GET, POST, PUT & DELETE. GET : Retrieve particular resources by an id POST : Create a new resource. PUT : Update a particular resource by an id. DELETE : Remove a particular resource. Click : https://phpgurukul.com/webservices-in-php/ Example of POST Step 1 : Create a database ( cr