Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

To find out the current year is leap year or not which
date() function we've to use.Give the syntax also

Answer Posted / mahesh

$dt = getdate();
$year = $dt['year'];
$month =
$array(1=>31,(($dt['year']-2000)%4?28:29),31,30,31,30,31,31,30,31,30,31);
if array[2]==29
then it is a leap year.
Otherwise Not

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is a conditional statement ended with endif?

977


What is whitespace in html?

1009


How to get the value of current session id?

966


What is the difference between associative array and indexed array?

1087


Tell me what is the main difference between php 4 and php 5?

990


What is trim codeigniter?

972


What is php default argument?

1036


Tell me can you extend a final defined class?

1058


Who is known as the father of php?

1139


Why post method is used in php?

1109


how to open & closing opening period in fico

1668


Declare a new variable in php equal to the number 3;

936


How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

927


What is php simple definition?

982


How are php sessions stored?

973