5 years ago in PHP Date and Time

How many constants does the DateTime class have in php 5.6?

[A] 8
[B] 9
[C] 10
[D] 11
Loading...
Next Question

Overall Stats

Attempted 31
Correct 4
Incorrect 16
Viewed 11

Answers

Guest
Guest
Dhanashri Bhuyar
Dhanashri Bhuyar - 9 months ago

Dhanashri Bhuyar from Mumbai, India is saying 10 is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 9 months ago

AHMED SOULIMANI from Casablanca, Morocco is saying 11 is correct answer

nikita pawar
nikita pawar - 1 year ago

nikita pawar from Pune, India is saying 8 is correct answer

ayush
ayush - 2 years ago

ayush from Mumbai, India is saying 9 is correct answer

preeti
preeti - 2 years ago

preeti from Kolkata, India is saying 9 is correct answer

Related Questions

The getdate() function returns

  • [A] An integer
  • [B] A floating-point number
  • [C] An array
  • [D] A string
  • [E] A Boolean

How we can set default timezone for our PHP application or website?

  • [A] set_time_zone('UTC');
  • [B] default_date_timezone_set('UTC');
  • [C] date_default_timezone_set('UTC');
  • [D] default_timezone('UTC')

What will be the output of following PHP snippet?
<?php 
      echo  date('\i\t \i\s \t\h\e jS \d\a\y.');

?>

  • [A] \i\t \i\s \t\h\e jS \d\a\y.
  • [B] it is the 10th day.
  • [C] \i\t \i\s \t\h\e 10th \d\a\y.
  • [D] it is the 10S day.

You must make a call to ................... to specify what time zone you want calculations to take place in before calling any date functions.

  • [A] date_default_timezone_set()
  • [B] datedefault_timezone_set()
  • [C] date_defaulttimezone_set()
  • [D] date_default_timezoneset()