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 / krishna reddy ketha

NOTE:
IT IS ONLY FOR FIND OUT THE GIVEN YEAR IS
LEAP YEAR OR NOT.

CONDITION:
/*
leap year:

// is divisible by 4 and not by 100
// is divisible by 400
*/


if((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)

printf("%d is a LEAP YEAR" + year);
else
printf("%d is NOT a LEAP YEAR" + year);

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does $_server means?

1014


Explain php explode() function.

1048


Tell me how to find current date and time?

1050


Can php run on windows server?

1036


What is a persistence cookie?

949


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

931


How to convert a json string to an array in php?

1071


Who is known as the father of php?

1142


What is the difference between overloading and overriding in php?

1042


How to replace a substring in a given string?

1127


What are sql functions?

957


What is csrf token and why it is required?

980


What is alias in php?

1039


What is html used for?

1022


How can we determine whether a php variable is an instantiated object of a certain class?

953