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 nonstatic?1. _construct()2. getName()3. getOffset()4. getTransitions() 4 2 3 1 4 2 3 1 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() 4 3 1 2 4 3 1 2 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(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_set_timezone(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_default_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_set_timezone(‘Europe/London’); date_set_default_timezone(‘Europe/London’); ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp How many constants does the DateTime class have? 9 11 10 8 9 11 10 8 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'); Invalid FALSE Valid TRUE Invalid FALSE Valid TRUE ANSWER DOWNLOAD EXAMIANS APP