Created
July 18, 2013 15:20
-
-
Save gmilby/6030194 to your computer and use it in GitHub Desktop.
good small sanitizer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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