Created
May 8, 2015 08:58
-
-
Save emmgfx/3f75291d05752704f4ec to your computer and use it in GitHub Desktop.
Calculate age
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
$age = date_diff(date_create($bdate), date_create('now'))->y; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment