This function calculates an age given a unix timestamp
<? function get_age(&$dob) { $t = time(); $age = ($dob < 0) ? ( $t ($dob * -1) ) : $t - $dob; return floor($age / 31536000); // 60 * 60 * 24 * 365; } ?>
No special instructions
Try removing the ampersand from the parameter
Its not working...
Rating: 0 / 5 (0 votes) 6171 views
Want to share your source code? Create your account and join our community!
Comments
steve
Posted on 28.05.2010 14:22
Try removing the ampersand from the parameter
guest
Posted on 28.05.2010 14:01
Its not working...
Add your comment