DateTime::getLastErrors
PHP 5 >= 5.3.0, PHP 7, PHP 8
DateTime::getLastErrors - Returns the warnings and errors
Manual
DateTime::getLastErrors(
): public static array|false
Procedural style
arrayfalsedate_get_last_errorsParameters
This function has no parameters.
Return Values
Returns array containing info about warnings and errors, or false if there are neither warnings nor errors.