PHP Special Characters Test
- by pws5068
What's an efficient way of checking if a username contains a number of special characters that I define.
Examples: % # ^ . ! @ & ( ) + / " ? ` ~ < { } [ ] | = - ;
I need to detect them and return a boolean, not just strip them out.
Probably a super easy question but I need a better way of doing this than a huge list of conditionals or a sloppy loop.