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
Write an example to remove html tags from a string in php?
Where are the persistent cookies stored on your computer?
Which software is used to run php programs?
Write syntax to open a file in php?
What is variable declaration?
What is the difference between die () and exit () in php?
What are the steps for the payment gateway processing?
What is == and === in php?
How variables are passed through arguments?
How to remove values saved in the current session?
What is rest api in php?
Do you know what does $globals means?
Where are php configuration settings stored?
Which one is best framework for php?
Tell me are parent constructors called implicitly inside a class constructor?