PHP動的メソッド実行
/** * 入力チェック実行 * * @param void * @return */ public function execInpuCheck($checkAry) { $result = true; foreach ($checkAry as $check) { $method = ucfirst($check); if (method_exists(__CLASS__, $method)) { // 各入力チェックを実行 $result = $this->$method(); } } return $result; }