Skip to content

Instantly share code, notes, and snippets.

@kristianb21
Created January 27, 2015 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristianb21/8019e0d115bf93ea279e to your computer and use it in GitHub Desktop.
Save kristianb21/8019e0d115bf93ea279e to your computer and use it in GitHub Desktop.
D7-PHP:drupal get args
$args_not_clean = arg(); //Get Current Args
$args = array();
foreach ($args_not_clean as $value) {
$args[] = check_plain($value); //sanitize URL arguments
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment