1
Opa!!
I have the following array on php, need to create a confrontation between teams and teams that are from the same group/array example Time 01 and Time 02 can not face each other in the first round.
I thought to check if the element are from the same array if yes takes one and passes to the next, only I could not do this check. I don’t know if there’s a function for that yet!!
If anyone has a tip on how to do I’m grateful!!
array(3) {
[0]=>
array(2) {
[2]=>
string(7) "Time 01"
[3]=>
string(7) "Time 02"
}
[1]=>
array(1) {
[0]=>
string(7) "Time 03"
}
[2]=>
array(1) {
[1]=>
string(7) "Time 04"
}
}
Oops!! Thank you for answering!! But in fact it’s the other way around the teams of the same group (array input) cannot face each other in the first round!! But for your example I will try to do here!!
– Tbrasil
Well, in my example the teams of the same group do not face, the opposite would be if only members of the same group faced each other....
– carla