PHP Date and Timestamp Which of the following statements can be used to set the time zone in individual scripts? date_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp The getdate() function returns An integer A string A floating-point number An array A Boolean An integer A string A floating-point number An array A Boolean ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which one of the following function is useful for producing a timestamp based on a given date and time. mtime() time() mrtime() mktime() mtime() time() mrtime() mktime() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which method is simply an object-oriented version of date()? DateTime::setTime() DateTime::modify() DateTime::setDate() DateTime::format() DateTime::setTime() DateTime::modify() DateTime::setDate() DateTime::format() ANSWER DOWNLOAD EXAMIANS APP
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 What will be the output of the following PHP code?echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid'); FALSE Invalid Valid TRUE FALSE Invalid Valid TRUE ANSWER DOWNLOAD EXAMIANS APP