PHP 8.0.24 Released!

DateTime::getLastErrors

date_get_last_errors

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

DateTime::getLastErrors -- date_get_last_errorsReturns the warnings and errors

Description

Object-oriented style

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

Procedural style

date_get_last_errors(): array|false

Like DateTimeImmutable::getLastErrors() but works with DateTime.

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.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top