src/Timezone.php
public static function optionsArray($config = [])
    {
        $data = self::data($config);

        $result = [];

        foreach ($data as $name => $zones) {
            if (array_get($config, 'include-region', false)) {
                $result[] = [array_get($config, 'region-value', null), $name];
            }
            foreach ($zones as $timezone => $zone) {
                $result[] = [$timezone, $zone];
            }
        }

        return $result;
    }
public static function optionsArray($config = [])
    {
        $data = self::data($config);

        $result = [];

        foreach ($data as $name => $zones) {
            if (array_get($config, 'include-region', false)) {
                $result[] = [array_get($config, 'region-value', null), $name];
            }
            foreach ($zones as $timezone => $zone) {
                $result[] = [$timezone, $zone];
            }
        }

        return $result;
    }
Return a flat array.

@param array $config

@return array