PHP : Add switch($_SERVER['REQUEST_METHOD'])