I searched the site but I could not find what I need and I do not know how to do this code. I need a script to make all the combinations in an array
For example i have this array:
$players = ('1', '2', '3', '4', '5');
And i need this output
1 - 2
1 - 3
1 - 4
1 - 5
2 - 3
2 - 4
2 - 5
3 - 4
3 - 5
4 - 5
Thanks in advance