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 / vaneet badhan

to check the current year code is :

date("L");
output will be 1 coz 2008 is a leap year.

better way to check is :

$year=2008;
echo date("L",mktime(1,1,1,1,1,$year));
now you can check any year by just changing the value of
variable $year, this is called dynamic programming.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to extend the execution time of a php script?

990


Tell me how comparison of objects is done in php5?

972


Tell us how can we access the data sent through the url with the post method?

1028


What is a persistent cookie in php?

1042


What is composer used for?

997


How to read the entire file into a single string?

1039


What is $_ post in php?

1124


Which operator is used to combine string values in php?

988


write a note on Testing the web site

1914


Is php pass by reference or value?

1145


What does a dependant variable mean?

1078


How can you declare the array in php?

1025


Explain the difference between php4 and php5.

1041


What is the correct php command to use to catch any error messages within the code?

1115


What is the difference between for and foreach?

1150