X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP date_get_last_errors() Function

PHP Date/Time PHP Date/Time Reference

Example

Return the warnings and errors while parsing a date string:

<?php
date_create("gyuiyiuyui%&&/");
print_r(date_get_last_errors());
?>

Run example »

Definition and Usage

The date_get_last_errors() function returns the warnings/errors found while parsing a date string.


Syntax

date_get_last_errors();

Technical Details

Return Value: Returns an array that contains information about the errors/warnings
PHP Version: 5.3+


PHP Date/Time PHP Date/Time Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook