Definition :
In PHP date_default_timezone_get() function is inbuilt function.PHP date_default_timezone_get() function is used to get the default timezone used by all date/time functions in the program. It returns false if the timezone is invalid, othewise it returns true value.
Syntax
date_default_timezone_get()
Given below example return the default timezone:
Output : Europe/Berlin