Problem Statement
Describe how a PHP script can act as a REST API endpoint.
Explanation
A PHP script reads the HTTP method (GET, POST, etc.), processes input data, performs logic like database operations, and returns a response with proper headers and status codes to the client.
