public static function getCountries()
    {
        // Put frequently country at the top
        $countries = array();
        $frequently = array();

        foreach (Convert::$aCountries as $k => $country) {
            //echo strtolower($k) . '<br />';
            if (in_array(strtolower($k), ['be', 'fr', 'gb'])) {
                $frequently[strtolower($k)] = $country;
            } else {
                $countries[strtolower($k)] = $country;
            }
        }

        return array_merge($frequently, $countries);
    }
public static function getCountries()
    {
        // Put frequently country at the top
        $countries = array();
        $frequently = array();

        foreach (Convert::$aCountries as $k => $country) {
            //echo strtolower($k) . '<br />';
            if (in_array(strtolower($k), ['be', 'fr', 'gb'])) {
                $frequently[strtolower($k)] = $country;
            } else {
                $countries[strtolower($k)] = $country;
            }
        }

        return array_merge($frequently, $countries);
    }
public static function getCountries ( ) { // Put frequently country at the top $ countries = array ( ) ; $ frequently = array ( ) ; foreach ( Convert :: $ aCountries as $ k => $ country ) { //echo strtolower($k) . '<br />'; if ( in_array ( strtolower ( $ k ) , [ 'be' , 'fr' , 'gb' ] ) ) { $ frequently [ strtolower ( $ k ) ] = $ country ; } else { $ countries [ strtolower ( $ k ) ] = $ country ; } } return array_merge ( $ frequently , $ countries ) ; }
Get Countries available
Get Countries available