Skip to content
Related Articles

Related Articles

Improve Article

PHP | timezone_version_get() Function

  • Last Updated : 14 Aug, 2018

The timezone_version_get() function is an inbuilt function in PHP which is used to return the version of the timezone database. No parameters are required to be passed in the timezone_version_get() function.


string timezone_version_get()

Parameters: The timezone_version_get() function does not require any parameters.

Return Value: It returns the version of the timezone database as a string.

Exceptions The timezone_version_get() function produce the outputs 0.system because the PHP version hasn’t been upgraded.

Below program illustrate the timezone_version_get() function in PHP:


// Displaying the version of the timezone database
$timezone_db= timezone_version_get();
echo ("Timezone Database Version: " . $timezone_db );
Timezone Database Version: 0.system


My Personal Notes arrow_drop_up
Recommended Articles
Page :