I have this array
down, and would like to know how I can count how many equal values it has in value[0]
.
Array:
array(5) {
[0]=>
array(9) {
[0]=>
string(6) "500038"
[1]=>
string(6) "204932"
"
}
[1]=>
array(9) {
[0]=>
string(6) "500038"
[1]=>
string(6) "204932"
"
}
[2]=>
array(9) {
[0]=>
string(6) "100398"
[1]=>
string(6) "204932"
"
}
[3]=>
array(9) {
[0]=>
string(6) "100398"
[1]=>
string(6) "204932"
"
}
[4]=>
array(9) {
[0]=>
string(6) "100398"
[1]=>
string(6) "204932"
"
}
}
For example, I know that you have 2 equal values that are 500038
and 3 that are 100398
. I need the total of both. The numbers in value[0]
will vary not always being the same.
I would like a way to do this because I need these numbers to know the total quantity and the volume number.
My idea would be this: