PHP program to print the request method used to access the webpage
<?php
//PHP program to print request method used
//to access the webpage.
$RequestMethod = $_SERVER['REQUEST_METHOD'];
printf("Request Method: %s<br>", $RequestMethod);
?>
Output
Request Method: GET
