DateTime::getLastErrors

PHP 5 >= 5.3.0, PHP 7, PHP 8
DateTime::getLastErrors - Returns the warnings and errors
Manual
Code Examples

DateTime::getLastErrors( ): public static array|false

Procedural style

arrayfalsedate_get_last_errors

Parameters

This function has no parameters.

Return Values

Returns array containing info about warnings and errors, or false if there are neither warnings nor errors.

Example of DateTime::getLastErrors

Show all examples for DateTime::getLastErrors

PHP Version:


Function DateTime::getLastErrors:

Date and Time Functions

Most used PHP functions