php 时间转时间缀


$today = date('Y-m-d H:i:s');                   // string:2024-10-26 14:06:06
$todayInt = strtotime(date('Y-m-d H:i:s'));     // int:1729923049
$str = date('Y-m-d H:i:s',$todayInt);           // string:2024-10-26 14:10:06

推荐阅读:

收藏
文章目录


    Apache常用安全配置

    JavaScript 获取元素的方法

    评 论