Re: php codes for the following pls ..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux