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