/ Published in: PHP
URL: http://snippets.dzone.com/posts/show/1310
Expand |
Embed | Plain Text
<?php function birthday ($birthday){ if ($month_diff < 0 || ($month_diff==0 && $day_diff < 0)) # Fix by tobiwan $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