adplus-dvertising
frame-decoration

Question

What will be the output of the following PHP code?
<?php
    echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');
    ?>

a.

TRUE

b.

FALSE

c.

Valid

d.

Invalid

Posted under PHP

Answer: (d).Invalid

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following PHP code?

Similar Questions

Discover Related MCQs

Q. The date() function returns ___ representation of the current date and/or time.

Q. Which one of the following format parameter can be used to identify timezone?

Q. If the format is F then which one of the following will be returned?

Q. Which one of the following function is useful for producing a timestamp based on a given date and time.

Q. Which function displays the web page’s most recent modification date?

Q. Say you want to calculate the date 45 days from the present date which one of the following statement will you use?

Q. To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?

Q. How many methods does the DateTime class have?

Q. How many constants does the DateTime class have?

Q. Which method is simply an object-oriented version of date()?

Q. Which of the following is the right way to use the DateTime class?

Q. Which of the following statements can be used to set the time zone in individual scripts?

Q. Among the four PHP DateTimeZone classes given below how many are static?

i) listAbbreviations()
ii) getName()
iii) getOffset()
iv) listIdentifiers()

Q. Among the four PHP DateTimeZone classes given below how many are non static?

i) _construct()
ii) getName()
iii) getOffset()
iv) getTransitions()

Q. Which of the following statements can be used to add two months to the existing date?

Q. Which method enables you to calculate whether daylight saving time is in force at a specific date and time?