Php check for invalid characters

I want to validate each fields by checking for invalid characters
such as [! # $ %& '* + - / =? ^]
What is the best way to go about it.