Published in: PHP
URL: http://snippets.dzone.com/posts/show/1310
<?php function birthday ($birthday){ if ($day_diff < 0 || $month_diff < 0) $year_diff--; return $year_diff; } ?>
Comments
Subscribe to comments
You need to login to post a comment.

Hi! The if statement is a little bit too short...
should do the job. Tobias