21xrx.com
2024-04-25 19:19:22 Thursday
登录
文章检索 我的文章 写文章
php date_get_last_errors()函数
2021-11-21 11:50:15 深夜i     --     --
php date_get_last_errors()函数

 

解析日期字符串时捕获警告和错误:

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

定义和用法

date_get_last_errors()函数返回在解析日期字符串时出现的警告/错误。


句法

date_get_last_errors()

技术细节

返回值: 返回包含有关错误/警告信息的数组
PHP版本: 5.3+

 

 

  
  

评论区

{{item['qq_nickname']}}
()
回复
回复
    相似文章