PHP Date and Timestamp What will be the output of the following PHP code?echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid'); TRUE FALSE Invalid Valid TRUE FALSE Invalid Valid 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 What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone? There is no difference The two will only match if the local time zone is GMT The two will never match It depends on the number of hours between the local time zone and GMT None of these There is no difference The two will only match if the local time zone is GMT The two will never match It depends on the number of hours between the local time zone and GMT None of these ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What will be the output of the following PHP code if date is 24/02/2008?$date = new DateTime();echo $date->format('l,F,js,Y') Sunday, February 24th 2008 Sunday, 24th February 2008 Sunday, 02 24 2008 Sunday, 24 02 2008 Sunday, February 24th 2008 Sunday, 24th February 2008 Sunday, 02 24 2008 Sunday, 24 02 2008 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 1 2 4 3 1 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp The date() function returns ___ representation of the current date and/or time. Integer Boolean String Float Integer Boolean String Float ANSWER DOWNLOAD EXAMIANS APP