PHP Date and Timestamp Which of the following statements can be used to add two months to the existing date? $date = modify(‘2+ months’); $date->modify(‘+2 months’); $date->modify(‘2+ months’); $date = modify(‘+2 months’); $date = modify(‘2+ months’); $date->modify(‘+2 months’); $date->modify(‘2+ months’); $date = modify(‘+2 months’); ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Among the four PHP DateTimeZone classes given below how many are static?1. listAbbreviations()2. getName()3. getOffset()4. listIdentifiers() 2 4 1 3 2 4 1 3 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which method is simply an object-oriented version of date()? DateTime::setTime() DateTime::format() DateTime::setDate() DateTime::modify() DateTime::setTime() DateTime::format() DateTime::setDate() DateTime::modify() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What will be the output of the following PHP code?If say date is 22/06/2013.printf( date("t") ) JUNE 2013 22 30 JUNE 2013 22 30 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 2 and 4 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 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? totime(“+45”) strtotime(“-45 days”) totime(“+45 days”) strtotime(“+45 days”) totime(“+45”) strtotime(“-45 days”) totime(“+45 days”) strtotime(“+45 days”) ANSWER DOWNLOAD EXAMIANS APP