Home >Backend Development >PHP Tutorial >转换日期显示

转换日期显示

WBOY
WBOYOriginal
2016-06-20 12:29:53918browse

$d= 2016-05-02;


怎么装换成  2016年5月2日


回复讨论(解决方案)

<?php$d = '2016-05-02';echo date('Y年n月j日', strtotime($d)); //2016年5月2日

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
Previous article:关于php输出值的问题Next article:TP小问题