Home / CSE / PHP - CS :: Discussion

Discussion :: PHP - CS

  1. Which of the following statements can be used to set the time zone in individual scripts?

  2. A.

     date_set_timezone(‘Europe/London’);

    B.

     date_default_timezone_set(‘Europe/London’);

    C.

     date_set_default_timezone(‘Europe/London’);

    D.

     date_default_timezone(‘Europe/London’);

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment