assert

assert

(PHP 4, PHP 5, PHP 7)

assertChecks if assertion is FALSE

Description

PHP 5 and 7

bool assert ( mixed $assertion [, string $description ] )

PHP 7

bool assert ( mixed $assertion [, Throwable $exception ] )

assert() will check the given assertion and take appropriate action if its result is FALSE.