<?php
-function isPostRequest() {
+function is_post_request() {
if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'POST') {
return true;
} else {
return false;
}
}
+
+function is_get_request() {
+ if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') === 'GET') {
+ return true;
+ } else {
+ return false;
+ }
+}
?>