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
http: //www.bkjia.com/PHPjc/317774.htmlTechArticleMethod 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