コード例 #1
0
ファイル: gchartutil.php プロジェクト: enormego/EightPHP
 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;
 }
コード例 #2
0
ファイル: bar.php プロジェクト: enormego/EightPHP
 private function setBarCount()
 {
     $this->totalBars = gchartutil::count_r($this->values);
 }