Note Submitter:
----
Here's a way to find your age. I couldn't make the other
examples work, so I made this one.
<?PHP
//Birthday in this format: year-month-day
$b_day = '1983-11-26';
//display your age to a nice round decimal using floor()
echo floor((strtotime(date("Y-m-d")) -
strtotime($b_day)) / (60 * 60 * 24 * 365));
?>
I hope you guys have great luck with this one!
Anna Marie
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|