The timezone_name_get() returns the name of the timezone.
PHP timezone_name_get() Function has the following syntax.
timezone_name_get(object)
PHP timezone_name_get() Function has the following parameter
PHP timezone_name_get() Function returns a timezone name from the list of timezones.
Return the name of the timezone:
<?php
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
The code above generates the following result.