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

转换日期显示

WBOY
Release: 2016-06-20 12:29:53
Original
910 people have browsed it

$d= 2016-05-02;
Copy after login


怎么装换成 2016年5月2日


回复讨论(解决方案)

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

Related labels:
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template