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
Is runtime polymorphism overriding?
Is python easier than php?
What are Routines?
What are global variables in php?
Difference between $message vs. $$Message in php.
What is the current stable version of php?
Which function is used in php to check the data type of any variable?
Tell me what does the initials of php stand for?
What is echo in html?
CWD is a type of shell variable. State Whether True or False?
What is varchar mysql?
How do I repair phpmyadmin?
What is the difference server side and browser side validation?
Does session expire on closing browser?
What are classes in php?