- PHP
-
2012-12-21
プログラムで常に現在の年齢を表示するには
<?php
print "age:".floor((date("Ymd") - "19940619") / 10000);
?>
結果
age:18
2,292 views




