Home » PHP » PHP Date/Time » Question
  1. Which of the following statements can be used to set the time zone in individual scripts?
    1. date_default_timezone(‘Europe/London’);
    2. date_set_default_timezone(‘Europe/London’);
    3. date_set_timezone(‘Europe/London’);
    4. date_default_timezone_set(‘Europe/London’);
    5. None of these
Correct Option: D

You can also use ini_set(‘date.timezone’, ‘Europe/London’);.



Your comments will be displayed only after manual approval.