php 格式化时间

 

<?php
 echo date("Y/m/d") . "<br>";
 echo date("Y.m.d") . "<br>";
 echo date("Y-m-d");
 ?>

输出

2009/05/11
 2009.05.11
 2009-05-11

 

posted @ 2018-12-08 11:43  anobscureretreat  阅读(132)  评论(0编辑  收藏  举报