Mettre en œuvre une fonction GroupByowners qui: accepte un tableau associatif

function groupByOwners(array $files) : array
{
    $result = [];

    foreach($files as $file => $owner) {
        $result[$owner][] = $file;
    }

    return $result;
}
Burhanuddin Lokhandwala