I have this array:
$y_exceptions = array(
"lay",
"interlay",
"display",
"delay",
"obey",
"decay",
"play",
"slay"
);
I'm checking if a word is in my array like this:
foreach($y_exceptions as $thisException) {
Which throws the error
Invalid argument supplied for foreach()
What have I done wrong?