SyntaxFix
Write A Post
Hire A Developer
Questions
You are looking to see if a single value is in an array. Use in_array.
in_array
However note that case is important, as are any leading or trailing spaces. Use var_dump to find out the length of the strings too, and see if they fit.
var_dump