Php Detect Request Type

[Solved] Php Detect Request Type | Php - Code Explorer | yomemimo.com
Question : php detect request type

Answered by : code-grepper

if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Boom baby we a POST method
}
if ($_SERVER['REQUEST_METHOD'] === 'GET') { // We are a GET method
}

Source : | Last Update : Wed, 06 Nov 19

Answers related to php detect request type

Code Explorer Popular Question For Php