Q:

Write a PHP script to get the current date/time of 'Australia/Melbourne'

0

Write a PHP script to get the current date/time of 'Australia/Melbourne'.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<?php
date_default_timezone_set('America/Los_Angeles');
$date = date('m/d/Y h:i:s a', time());
echo $date;
?>

Sample Output:

07/11/2017 12:52:31 am

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now