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

Is runtime polymorphism overriding?

914


Is python easier than php?

951


What are Routines?

2188


What are global variables in php?

902


Difference between $message vs. $$Message in php.

945


What is the current stable version of php?

983


Which function is used in php to check the data type of any variable?

890


Tell me what does the initials of php stand for?

922


What is echo in html?

834


CWD is a type of shell variable. State Whether True or False?

1046


What is varchar mysql?

1082


How do I repair phpmyadmin?

899


What is the difference server side and browser side validation?

934


Does session expire on closing browser?

848


What are classes in php?

1000