Is it reliable to use $_SERVER["REQUEST_METHOD"] to determine the method of page invocation in PHP, considering the possibility of using both GET and POST variables simultaneously?

When using both GET and POST variables simultaneously, relying solely on $_SERVER["REQUEST_METHOD"] may not be reliable to determine the method of page invocation in PHP. To accurately determine the method, you can also check for the presence of specific variables that are unique to either GET or POST requests.

if ($_SERVER["REQUEST_METHOD"] == "GET" && isset($_GET['variable_name'])) {
    // GET request
} elseif ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['variable_name'])) {
    // POST request
} else {
    // Handle other cases
}