Let's say if I have this variable $a = 'test';
Now let's say I created an array of multiple items like so:
$array['hello'] = 'yes';
$array['goodbye'] = 'no';
$array['afternoon'] = 'test';
Is it possible to check if any of the items in the array are the same, similar to isset(), then to get which item it is equal to it ($array['afternoon'])?
array_search: stackoverflow.com/questions/6046908/php-index-of-item