Last active
July 1, 2017 09:17
-
-
Save yano3nora/ba272e20d0527aa8798169d040ac4f5e to your computer and use it in GitHub Desktop.
[php: Calc age by birthday] src = http://qiita.com/arthur87/items/aa3355f218d4c9a90436 #php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// calc age | |
$today = date("Ymd"); | |
$birth = "19800901"; | |
$age = floor(($today-$birth)/10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment