• PHP Video Tutorials

PHP timezone_version_get() Function



Definition and Usage

The timezone_version_get() returns the current version of the timezonedb.

Syntax

timezone_version_get()

Parameters

This function doesn't accept any parameters

Return Values

PHP timezone_version_get() function returns a string value specifying the the version of the timezonedb.

PHP Version

This function was first introduced in PHP Version 5.3.0 and, works with all the later versions.

Example

Following example demonstrates the usage of the timezone_version_get() function −

<?php
   $version = timezone_version_get();
   print($version);
?>

This will produce following result −

2019.3
php_function_reference.htm
Advertisements