'region' => 'germany', 'number' => 3, 'name' => 'test1', 'color' => 'green', 'anotherthing' => 'anotherthing' ), 'region' => 'germany', 'number' => 3, 'name' => 'test1', 'color' => 'green', 'anotherthing' => 'anotherthing' ), 'region' => 'france', 'number' => 4, 'name' => 'test2', 'color' => 'yellow', 'anotherthing' => 'anotherthing' ), );
A chcę:
'region' => 'germany', 'number' => 3, 'name' => 'test1', 'color' => 'green', 'anotherthing' => 'anotherthing' ), 'color' => 'green', 'anotherthing' => 'anotherthing' ) ) ), 'region' => 'france', 'number' => 4, 'name' => 'test2', 'color' => 'yellow', 'anotherthing' => 'anotherthing' ) ) ) );
Jak to zrobić? Chodzi o to, żeby w kluczu 'list' były dane które mają klucz 'number' taki sam