I have a PHP variable of the type Array and I want to find out if it contains a specific value and let the user know that it is there. This is array:
Array ( [0] => kitchen [1] => bedroom [2] => living_room [3] => dining_room)
I would like to do something like:
if(Array contains 'kitchen') {echo 'this array contains kitchen';}
What is the best way to do this?