Hello there,
I'm trying to count the number of value of my sub array which look like this:
$myArray[group1][0]
A var_dump of this array give me this:
array(1) {
["group1"]=>
array(2) {
[0]=>
string(9) "DCL1248ES"
[1]=>
string(9) "DHL1248ES"
}
}
I would like to count the number of value contain in $myArray[group1] that in this present case would give me
2
I've try with count($myArray[group1])
but the following code give me 1:
Code:
$arrayCount = count($myArray[group1]);
print "$arrayCount";