Home > Backend Development > PHP Tutorial > 知道年龄如何推算他的出生年

知道年龄如何推算他的出生年

WBOY
Release: 2016-06-20 12:45:38
Original
2539 people have browsed it

假如我知道一个年龄比如30怎么推算他出生的年?


回复讨论(解决方案)

echo date('Y', strtotime('-30 year'));

echo date('Y-m-d',strtotime('-30year'));
Copy after login

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