PHP Date and Timestamp Which of the following is the right way to use the DateTime class? $date = new class DateTime(); $date = new DateTime(); $date = class DateTime; $date = get_Class(DateTime); $date = new class DateTime(); $date = new DateTime(); $date = class DateTime; $date = get_Class(DateTime); ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What will the following script output?$time = strtotime ('2004/01/01');echo date ('H:i:s', $time); 00:i:00 12:i:00 0:00:00 12:00:00 00:i:00 12:i:00 0:00:00 12:00:00 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 days”) totime(“+45”) strtotime(“+45 days”) strtotime(“-45 days”) totime(“+45 days”) totime(“+45”) strtotime(“+45 days”) strtotime(“-45 days”) 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") ) 22 JUNE 30 2013 22 JUNE 30 2013 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp .......... Returns the time of sunrise for a given day / location. datesunrise() date_sunrise() date.sunrise() date-sunrise() datesunrise() date_sunrise() date.sunrise() date-sunrise() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What will be the output of the following code?If say date is 22/06/2013.echo "Today is ".date("F d, Y") Today is 06-22-2013 Today is 22-06-2013 Today is June 22, 2013 Today is 22 June, 2013 Today is 06-22-2013 Today is 22-06-2013 Today is June 22, 2013 Today is 22 June, 2013 ANSWER DOWNLOAD EXAMIANS APP