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

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

WBOY
WBOYOriginal
2016-06-20 12:45:382541browse

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


回复讨论(解决方案)

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

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

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