I have this code here:
if (in_array('mystring', $entry->getCategories()->getValues()))
{
... //do somethingA
This works.
However, I want to allow somethingA to run, if mystring OR mYstring or MYSTRING is this case.
So I've tried like so:
if (in_array(array('OCC', 'OCc','Occ', 'occ', 'ocC','oCC', 'oCc', 'OcC'), $entry->getCategories()->getValues()))
{
But I get nothing returned. What am I missing here?