error_clear_last
PHP 7, PHP 8
error_clear_last - Clear the most recent error
Code Examples
Example #1 An error_clear_last example
Result: NULL
NULL
array(4) {
["type"]=>
int(8)
["message"]=>
string(21) "Undefined variable: b"
["file"]=>
string(9) "%s"
["line"]=>
int(6)
}
NULL