I have a multi-dimentional array set up as follows
array() { [\"type1\"] => array() { [\"ticket1\"] => array(9) {
To count total number of Ticket, this bellow code will help you for PHP.
foreach($mainArray as $Array){ foreach($Array as $perTicke){ $count++; } } $total_ticket = $count;