Skip to content

Instantly share code, notes, and snippets.

@ososstar
Created February 24, 2019 07:20
Show Gist options
  • Save ososstar/f940a803801551d49fa59137eb66695b to your computer and use it in GitHub Desktop.
Save ososstar/f940a803801551d49fa59137eb66695b to your computer and use it in GitHub Desktop.
function isTheseGETParametersAvailable($params)
{
//traversing through all the parameters
foreach ($params as $param) {
//if the parameter is not available
if (!isset($_GET[$param])) {
//return false
return false;
}
}
//return true if every param is available
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment