2019-07-25から1日間の記事一覧
is_callable ( mixed $var ) : bool 関数としてコール可能かを返す。アクセス修飾子も考慮してくれる(protectedなどで実行できないならfalse)。 ex: LaravelのExceptionHandler public function report(Exception $e) { if ($this->shouldntReport($e)) { …
is_callable ( mixed $var ) : bool 関数としてコール可能かを返す。アクセス修飾子も考慮してくれる(protectedなどで実行できないならfalse)。 ex: LaravelのExceptionHandler public function report(Exception $e) { if ($this->shouldntReport($e)) { …