function Global / throw_if
You are viewing an older version of the documentation. For the latest, please visit master documentation.

throw_if

throw_if ( ) : mixed

Throw the given exception if the given condition is true.

Parameters

  • $condition mixed
  • $exception Throwable |string
  • $parameters mixed