Stupid question here, Should I be sanitizing every $_POST / $_GET variable even if it is just being used for something like a comparison?
Example:
if ( $_POST[ 'example' ] === 1 ){ // Do Something }
I understand the idea of using prepared statements for databases, etc, but I am curious / worried about a user placing some PHP code or something else and it running during that check.