PHP date_get_last_errors() Function

PHP date_get_last_errors- Function


Definition : 

PHP date_get_last_errors() function is inbuilt function.PHP date_get_last_errors() function is used to returns the warnings and errors occurs while parsing the date string. It parse a date/time string and returns an array of warnings and errors. It does not accept any input parameter.

Syntax

    date_get_last_errors()

Given below example Return the warnings and errors while parsing a date string:

Output :