How do I fix it??
I want to treat $totalcount as an integer on the left side of the = sign and as an array on the right side.
If I have this:
$totalcount[0] = 10
$totalcount[1] = 15
$slabcount = 10
I want to do this:
$totalcount[0] = $totalcount[0] + $slabcount;
so
$totalcount[0] = 10 + 10 and $totalcount[0] is now 20
and:
$totalcount[1] = $totalcount[1] + $slabcount;
so
$totalcount[1] = 15 + 10 and $totalcount[1] is now 25