我有这个数组:
Array ( [2-3] => player1 [1-3] => player2 [2-0] => player1 [5-1] => player1 [2-4] => player2 [4-1] => player2 )
我想要的是这样的:if array value is "player1" show all its keys in a table
player1 的结果在表格中应该是这样的:
- 2-3
- 2-0
- 5-1
我会让他们在不同的桌子上为 player2 做同样的事情。我该怎么做?