返回解析日期字符串时的警告和错误:
<?php
date_create("aecubdjpoi%&&/",NULL);
print_r(date_get_last_errors(),NULL);
?>
date_get_last_errors() 函数返回解析日期字符串时找到的警告/错误。
date_get_last_errors(,NULL);
返回值: | 返回一个包含有关错误/警告信息的数组。 |
---|---|
PHP 版本: | 5.3+ |
©2020 IT自习室京ICP备20010815号