I have the following code :
public static function getNatureAndSuffix()
{
foreach (Finder::load('all.yml') as $s => $c) {
$a_games[] = array($c['n'] => $s);
}
return $a_games;
}
The result is :
Array(
[90] => Array
(
[731] => Test1
)
[91] => Array
(
[732] => Test2
)
[92] => Array
(
[735] => Test3
)
)
But I want to get :
Array(
[731] => Test1
[732] => Test1
[735] => Test3
)
So the idea is to obtain an array key=>value. Can you help me please ? Thx in advance