- in_array: documentation ( source)
<?php
$item = (
Array
(
'group_roles_name' => 'CREATOR'
)
);
$value = "CREATOR";
if(is_array($item) && !in_array($value,$item)){ // not equal, break de loop
$itemFound = false;
echo "not found";
}
else if(is_array($item) && in_array($value,$item)){
echo "found";
}