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
What is 'float' property in css?
What is magic quotes?
What is difference between echo and print in php?
What are the two types of variables?
What is the difference between myisam and innodb?
What is the static variable in function useful for?
What is ltrim?
What are computer variables?
Name some of the popular frameworks in php.
Which library is used in php to do various types of image work?
How to get the position of the character in a string in php?
What is the difference between javascript and php?
How do I sort numbers in php?
Explain me is multiple inheritance supported in php?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain