request type PHP $SERVER code example Example 1: request type PHP $SERVER $_SERVER["REQUEST_METHOD"] Example 2: request type PHP $SERVER $_SERVER["REQUEST_METHOD"]