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

Write an example to remove html tags from a string in php?

885


Where are the persistent cookies stored on your computer?

960


Which software is used to run php programs?

971


Write syntax to open a file in php?

1010


What is variable declaration?

897


What is the difference between die () and exit () in php?

955


What are the steps for the payment gateway processing?

973


What is == and === in php?

884


How variables are passed through arguments?

915


How to remove values saved in the current session?

980


What is rest api in php?

914


Do you know what does $globals means?

1003


Where are php configuration settings stored?

982


Which one is best framework for php?

943


Tell me are parent constructors called implicitly inside a class constructor?

915