PHP Program to Set timezone, then output current time

To set a timezone in PHP, you can use the `date_default_timezone_set()` function. Here's an example program that sets the timezone to "America/New_York" and outputs the current time :
Program :
<?php
date_default_timezone_set('America/New_York');
echo "The current time is " . date("h:i:s A") . "\n";
?>
Output :
The current time is 06:34:26 AM
This program first sets the timezone using `date_default_timezone_set()`, and then uses the `date()` function to format and output the current time. The format string `"h:i:s A"` specifies that the time should be displayed in hours, minutes, seconds, and AM/PM format.

You can change the timezone to any valid timezone string, such as "Europe/London", "Asia/Tokyo", or "Australia/Sydney".