aswi2020sebela-gitlab/website/src/Utils/Utils.php @ 61dcb4be
1 |
<?php
|
---|---|
2 |
|
3 |
namespace App\Utils; |
4 |
|
5 |
class Utils { |
6 |
public static function prepareDatasetsNames($datasets) { |
7 |
$names; |
8 |
|
9 |
$index = 0; |
10 |
foreach ($datasets as $key => $value) { |
11 |
$names[$value['name']] = $index++; |
12 |
}
|
13 |
|
14 |
return $names; |
15 |
}
|
16 |
}
|