Array (
[Team1] => Array (
[win] => 1
[draw] => 0
[lost] => 0
)
[Team2] => Array (
[win] => 1
[draw] => 1
[lost] => 1
)
[Team3] => Array (
[win] => 1
[draw] => 0
[lost] => 1
)
[AnotherTeam] => Array (
[win] => 0
[draw] => 0
[lost] => 1
)
[LastTeam] => Array (
[win] => 0
[draw] => 1
[lost] => 0
)
)
以上是生成数组的示例。想象一下,有一些足球俱乐部的胜场数和输球数。
我想将此数组打印为表格的行和列,如下所示;
Team | Win | Draw | Lost
Team 1 1 0 0
Team 2 1 1 1
我有一个使用提取方法的建议。但是没有好好想清楚。希望任何人都可以给我一个线索。
谢谢,