Home > php教程 > php手册 > php中的时间显示

php中的时间显示

WBOY
Release: 2016-06-13 12:33:45
Original
881 people have browsed it

 
方法1:
 //list($first,$second)=explode(" ",$date_temp);
     // echo $first;
                     //echo substr($first,2)
 方法2:
      // echo date("Y-m-d", strtotime( $date_temp ) );
方法3:
       echo substr($date_temp,0,10)."
";

 
//会员退出   使用框架的情况下
session_start();//只要用到SESSION就必须要session_start
session_destroy();
echo "<script>alert('已经安全退出!!');</script>";
echo "<script>"; <BR>echo "top.window.opener = 'xxx';top.window.close();"; <BR>echo "</script>"; 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template