PHP Date and Timestamp The getdate() function returns An array A floating-point number A string An integer A Boolean An array A floating-point number A string An integer A Boolean 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? strtotime(“+45 days”) totime(“+45 days”) totime(“+45”) strtotime(“-45 days”) strtotime(“+45 days”) totime(“+45 days”) totime(“+45”) strtotime(“-45 days”) ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone? None of these It depends on the number of hours between the local time zone and GMT There is no difference The two will only match if the local time zone is GMT The two will never match None of these It depends on the number of hours between the local time zone and GMT There is no difference The two will only match if the local time zone is GMT The two will never match 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. time() mrtime() mtime() mktime() time() mrtime() mtime() mktime() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which method is simply an object-oriented version of date()? DateTime::modify() DateTime::format() DateTime::setTime() DateTime::setDate() DateTime::modify() DateTime::format() DateTime::setTime() DateTime::setDate() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which of the following is the right way to use the DateTime class? $date = new DateTime(); $date = get_Class(DateTime); $date = class DateTime; $date = new class DateTime(); $date = new DateTime(); $date = get_Class(DateTime); $date = class DateTime; $date = new class DateTime(); ANSWER DOWNLOAD EXAMIANS APP