PHP Date and Timestamp Which one of the following function is useful for producing a timestamp based on a given date and time. mrtime() mktime() time() mtime() mrtime() mktime() time() mtime() 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 Which of the following is the right way to use the DateTime class? $date = new class DateTime(); $date = get_Class(DateTime); $date = class DateTime; $date = new DateTime(); $date = new class DateTime(); $date = get_Class(DateTime); $date = class DateTime; $date = new DateTime(); 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 5 Option 1 and 4 Option 2 and 4 Option 2 and 4 Option 1 and 5 Option 1 and 4 Option 2 and 4 Option 2 and 4 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'); TRUE Valid FALSE Invalid TRUE Valid FALSE Invalid ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp How many constants does the DateTime class have? 8 10 9 11 8 10 9 11 ANSWER DOWNLOAD EXAMIANS APP