Cara mendeteksi metode permintaan di PHP

// Check request method in php using super global variable $_SERVER
if(isset($_SERVER['REQUEST_METHOD'])){
	// Now display request method
    echo $_SERVER['REQUEST_METHOD'];
}
Abhay Mishra