I have a multi-dimension array :
array(3) {
[0]=> array(3) {
["label"]=> string(2) "Ai"
["male"]=> int(0)
["female"]=> int(10)
}
[1]=> array(3) {
["label"]=> string(2) "Bi"
["male"]=> int(0)
["female"]=> int(20)
}
[2]=> array(3) {
["label"]=> string(2) "Ci"
["male"]=> int(10)
["female"]=> int(20)
}
I want to get all the same max value or all the same min value, I mean if there are 2 or more the same max or min value in the array, for example, I want to get all the same min value for male like this:
array(2) {
[0]=> array(3) {
["label"]=> string(2) "Ai"
["male"]=> int(0)
}
[1]=> array(3) {
["label"]=> string(2) "Bi"
["male"]=> int(0)
}
any solutions would be appreciated, thanks