PHP Date and Timestamp Which method is simply an object-oriented version of date()? DateTime::setDate() DateTime::setTime() DateTime::format() DateTime::modify() DateTime::setDate() DateTime::setTime() DateTime::format() DateTime::modify() 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 The getdate() function returns A string An array An integer A floating-point number A Boolean A string An array An integer A floating-point number A Boolean ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which of the following statements can be used to set the time zone in individual scripts? date_default_timezone_set(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Among the four PHP DateTimeZone classes given below how many are nonstatic?1. _construct()2. getName()3. getOffset()4. getTransitions() 4 3 2 1 4 3 2 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which of the following is the right way to use the DateTime class? $date = class DateTime; $date = new DateTime(); $date = new class DateTime(); $date = get_Class(DateTime); $date = class DateTime; $date = new DateTime(); $date = new class DateTime(); $date = get_Class(DateTime); ANSWER DOWNLOAD EXAMIANS APP