Which of the following functions do not return a timestamp?<br/>1. time()<br/>2. date()<br/>3. strtotime()<br/>4. localtime()<br/>5. gmmktime() Option 1 and 4 Option 1 and 5 Option 2 and 4 Option 2 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid'); Valid FALSE Invalid TRUE TRUE ANSWER : ? YOUR ANSWER : ?
The date() function returns ___ representation of the current date and/or time. Boolean Float String Integer TRUE ANSWER : ? YOUR ANSWER : ?
The getdate() function returns A string An integer A Boolean A floating-point number An array TRUE ANSWER : ? YOUR ANSWER : ?
Say you want to calculate the date 45 days from the present date which one of the following statement will you use? strtotime(“+45 days”) totime(“+45”) totime(“+45 days”) strtotime(“-45 days”) TRUE ANSWER : ? YOUR ANSWER : ?
The ......... function parses an English textual date or time into a Unix timestamp. stroftime() strtodate() str_to_time() strtotime() TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following function is useful for producing a timestamp based on a given date and time. mktime() time() mtime() mrtime() TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following statements can be used to set the time zone in individual scripts? date_set_default_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_set_timezone(‘Europe/London’); date_default_timezone(‘Europe/London’); TRUE ANSWER : ? YOUR ANSWER : ?
Which function displays the web page’s most recent modification date? get_last_mod() getlastmod() last_mod() lastmod() TRUE ANSWER : ? YOUR ANSWER : ?
If the format is F then which one of the following will be returned? Daylight saving time Day of month, without zeros Complete text representation of month Day of month, with leading zero TRUE ANSWER : ? YOUR ANSWER : ?