Home  >  Article  >  Backend Development  >  Time display in php_PHP tutorial

Time display in php_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:57:371163browse


Method 1:
//list($first,$second)=explode(" ",$date_temp);
//echo $first;
//echo substr($first,2 )
Method 2:
// echo date("Y-m-d", strtotime($date_temp));
Method 3:
echo substr($date_temp,0,10)."alert('Safe exit!!');";
echo "";




http://www.bkjia.com/PHPjc/317774.html

www.bkjia.com

true

TechArticleMethod 1: //list($first,$second)=explode("",$date_temp); / /echo$first; //echosubstr($first,2) Method 2: //echodate("Y-m-d",strtotime($date_temp)); Method 3: echosubstr($date_tem...
Statement:
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