In message <fd2ae9b90906180214t3d4e7769n10d40bfcca439cf5@xxxxxxxxxxxxxx> , Davide Baglieri <davidonzo@xxxxxxxxx> writes > function isLeapYear($year){ > if(checkdate(2,29,$year)){ > return $year.' is a leap year'; > }else{ > return $year.' is not a leap year'; > } > } > or echo "$year is".(date('L', strtotime("$year-1-1"))?'':' not').' a leap year'; I would be really interested to know how many marks Suhasinis tutor gives us for these answers... -- Pete Clark Got any spare time? Anything you need? Barter in Spain Join for free at http://BarterWithBart.com