$now = date('Ymd'); $birthday = "1990-07-01"; $birthday = str_replace("-", "", $birthday); $age = floor(($now - $birthday) / 10000); echo $age . "歳";
$ php app.php
33歳
ソフトウェアエンジニアの技術ブログ:Software engineer tech blog
随机应变 ABCD: Always Be Coding and … : хороший