protected function getTimezoneLocations($region)
    {
        $locations = [];
        foreach (DateTimeZone::listIdentifiers($region) as $timezone) {
            $locations[] = substr($timezone, strpos($timezone, '/') + 1);
        }
        return $locations;
    }
protected function getTimezoneLocations($region)
    {
        $locations = [];
        foreach (DateTimeZone::listIdentifiers($region) as $timezone) {
            $locations[] = substr($timezone, strpos($timezone, '/') + 1);
        }
        return $locations;
    }
protected function getTimezoneLocations ( $ region ) { $ locations = [ ] ; foreach ( DateTimeZone :: listIdentifiers ( $ region ) as $ timezone ) { $ locations [ ] = substr ( $ timezone , strpos ( $ timezone , '/' ) + 1 ) ; } return $ locations ; }
Gets a list of available locations in the supplied region.

@param int $region The region constant

@return array

@see DateTimeZone
Gets a list of available locations in the supplied region .