So i have this multi-dimensional array , what i want to do is get how many times a value occurs with another.
For example:
Ball , Jungle and Car appears together 2 times , Ball and Car appears together 3 Times , Ball and Jungle appears together 3 Times , Ball and Sea appears together 2 Times .... Sea and Jungle appears together 1 time ....
one array may have 3 elements and the other may have 8 elements.
is it possible to acomplish that ?
array(5) {
[0]=>
array(3) {
[0]=>
string(4) "Ball"
[1]=>
string(6) "Jungle"
[2]=>
string(3) "Sea"
[3]=>
string(3) "Fish"
}
[1]=>
array(3) {
[0]=>
string(3) "Sea"
[1]=>
string(4) "Ball"
[2]=>
string(3) "Car"
}
[2]=>
array(3) {
[0]=>
string(5) "Jungle"
[1]=>
string(4) "Ball"
[2]=>
string(3) "Car"
}
[3]=>
array(3) {
[0]=>
string(5) "Jungle"
[1]=>
string(4) "Ball"
[2]=>
string(3) "Car"
}
}