To find out the current year is leap year or not which
date() function we've to use.Give the syntax also

Answer Posted / palanisamy

we have to use the argument 'L' for the date function and it
will return 1 if the given year is leap year else it will
return 0

ex: date('L',$yourdate)

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is escape data in php?

700


What are sql injections, how do you prevent them and what are the best practices?

756


What does the unlink() function means?

754


What is mysql_fetch_object?

763


What is beforeRender() used?

825


Tell me is it possible to remove the html tags from data?

704


What are getters and setters php?

772


What is the difference between associative array and indexed array?

733


Define metaphone()?

8478


How can you tell if a number is even or odd without using any condition or loop?

758


What is the use of imagetypes() method?

735


What is php artisan tinker?

712


Can we run php on tomcat server?

784


What is get and post method in php?

749


What is the maximum size of a database in mysql?

735