Skip to content

Instantly share code, notes, and snippets.

@gmilby
Created July 18, 2013 15:20
Show Gist options
  • Save gmilby/6030194 to your computer and use it in GitHub Desktop.
Save gmilby/6030194 to your computer and use it in GitHub Desktop.
good small sanitizer
// move to helper
// clean submitted data before handling in db realm (roll 32 sided di now...)
function scrubberUpper($str) { return filter_var(strtoupper(trim($str)), FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment