The answers before will work, but be insecure..if somebody sends KEY=a or KEY=b, and either of those letters are inside any of your keys, then it will result in a truth value
Here is a secure answer that allows you to put each key on a new line
<?PHP
$keys = explode("\n"...