I have three array like below
Array
(
[02/2013] => 2
[03/2013] => 1
[04/2013] => 5
[05/2013] => 11
[06/2013] => 1
[07/2013] => 9
[08/2013] => 3
)
Array
(
[07/2013] => 99
[08/2013] => 76
)
Array
(
[02/2013] => 2
[04/2013] => 2
[06/2013] => 4
[07/2013] => 3
[08/2013] => 5
)
I want to find the maximum count array index print which is defined below.There will be three use case like below.
If count of first array index is greater print "first array has maximum index"
If count of second array index is greater print "second array has maximum index"
If count of third array index is greater print "third array has maximum index"
After Edit :
actually what I want that we need to same array index for all three if array index is not exits then it will create and put it value 0 by default.
array_sum()
would do the job. Now try it, if you get stuck read the manual, if you weren't able to then search for other questions. Lastly if you fail come here again. – HamZa Aug 9 at 7:12