<?php $str = "2017-02-27 13:40:42"; $first=explode(' ',$str); $second=explode('-', $first['0']); $three=explode('-', $first['0'])['2']; print_r($first); echo "<br>"; print_r($second); echo "<br>"; print_r($three); ?>
<?php $str = "2017-02-27 13:40:42"; $first=explode(' ',$str); $second=explode('-', $first['0']); $three=explode('-', $first['0'])['2']; print_r($first); echo "<br>"; print_r($second); echo "<br>"; print_r($three); ?>
上一篇:php获取今日开始时间和结束时间
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M