Implement a groupByOwners function that: Accepts an associative array containing the file owner name for each file name. Returns an associative array containing an array of file names for each owner name, in any order. code example
Example: Implement a groupByOwners function that: Accepts an associative array
function groupByOwners(array $files) : array
{
$result = [];
foreach($files as $file => $owner) {
$result[$owner][] = $file;
}
return $result;
}