Skip to content

Instantly share code, notes, and snippets.

@stefan-vatov
Created May 20, 2015 15:27
Show Gist options
  • Save stefan-vatov/99728fbbec7c8da386e8 to your computer and use it in GitHub Desktop.
Save stefan-vatov/99728fbbec7c8da386e8 to your computer and use it in GitHub Desktop.
Collection of methods to sanitise input
filter_input(INPUT_GET, 'search', FILTER_SANITIZE_SPECIAL_CHARS);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment