Return the warnings and errors while parsing a date string:
<?php
date_create("gyuiyiuyui%&&/");
print_r(date_get_last_errors());
?>
Try it Yourself »
The date_get_last_errors() function returns the warnings/errors found while parsing a date string.
date_get_last_errors()
Return Value: | Returns an array that contains information about the errors/warnings |
---|---|
PHP Version: | 5.3+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!