There is in_array function.
if(in_array($a, array('are','abc','xyz','lmn'), true)){
echo 'true';
}
NOTE:
You should set the 3rd parameter to true
to use the strict compare.
in_array(0, array('are','abc','xyz','lmn'))
will return true
, this may not what you expected.