php 几秒钟前发文章代码 返回时间
发布时间:2020-12-13 20:34:48 所属栏目:PHP教程 来源:网络整理
导读:function timeop( $time , $type = talk ){ $ntime =time()- $time ; if ( $ntime 60){ return ( 刚才 ); } elseif ( $ntime 3600){ return ( intval ( $ntime /60). 分钟前 ); } elseif ( $ntime 3600*24){ return ( intval ( $ntime /3600). 小时前 ); } e
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |