[Solved] How to group and create relationship from JSON response [closed]
It sounds like you want to group the items by league. Let’s use our array_reduce friend for that. This is the basic syntax: $arr = [ [ “leauge” => “sweeden”, “fixture” => “12” ], [ “leauge” => “sweeden”, “fixture” => “13” ], [ “leauge” => “germany”, “fixture” => “14” ], [ “leauge” => “france”, “fixture” … Read more