Skip to content

Instantly share code, notes, and snippets.

View sodmond's full-sized avatar
🏚️
Open to Remote Work.

Sodik Owolabi sodmond

🏚️
Open to Remote Work.
View GitHub Profile
<?php
//answer for https://www.testdome.com/questions/php/file-owners/11840?visibility=17&skillId=5
class FileOwners
{
public static function groupByOwners($files)
{
$result=array();
foreach($files as $key=>$value)
{
$result[$value][]=$key;