> 其他 >
php怎样获取某一特定时间的时分秒?比如我只要取得“2011年5月26号 10时10分10秒”这个日期的时分秒
人气:302 ℃ 时间:2020-06-14 03:22:24
解答
$date = "2011-5-26 10:10:10";
echo date('H:i:s',strtotime($date));
上述输出10:10:10
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版