public static function count_r($mixed) { $totalCount = 0; foreach ($mixed as $temp) { if (is_array($temp)) { $totalCount += gchartutil::count_r($temp); } else { $totalCount += 1; } } return $totalCount; }
private function setBarCount() { $this->totalBars = gchartutil::count_r($this->values); }