PHP Date and Timestamp The getdate() function returns A floating-point number An array An integer A string A Boolean A floating-point number An array An integer A string A Boolean ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp 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 days”) totime(“+45”) strtotime(“+45 days”) strtotime(“-45 days”) totime(“+45 days”) totime(“+45”) strtotime(“+45 days”) ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What will be the output of the following PHP code if date is 24/02/2008?$date = new DateTime();echo $date->format('l,F,js,Y') Sunday, 24 02 2008 Sunday, 24th February 2008 Sunday, February 24th 2008 Sunday, 02 24 2008 Sunday, 24 02 2008 Sunday, 24th February 2008 Sunday, February 24th 2008 Sunday, 02 24 2008 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which of the following functions do not return a timestamp?1. time()2. date()3. strtotime()4. localtime()5. gmmktime() Option 1 and 4 Option 2 and 4 Option 1 and 5 Option 2 and 4 Option 1 and 4 Option 2 and 4 Option 1 and 5 Option 2 and 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What would happen if the following script were run on a Windows server set to Moscow, Russia’s time zone?echo gmmktime(0, 0, 0, 1, 1, 1970); It would output nothing It would output the number 1 It would output the number -1 It would output the number 0 It would output nothing It would output the number 1 It would output the number -1 It would output the number 0 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone? There is no difference The two will never match The two will only match if the local time zone is GMT None of these It depends on the number of hours between the local time zone and GMT There is no difference The two will never match The two will only match if the local time zone is GMT None of these It depends on the number of hours between the local time zone and GMT ANSWER DOWNLOAD EXAMIANS APP