public function makeAllFlags($country)
    {
        return [
            // https://www.flag-sprites.com/
            // https://github.com/LeoColomb/flag-sprites
            'sprite' => '<span class="flag flag-'.($cca3 = strtolower($country['cca3'])).'"></span>',

            // https://github.com/lipis/flag-icon-css
            'flag-icon' => '<span class="flag-icon flag-icon-'.($iso_a2 = strtolower($country['iso_a2'])).'"></span>',
            'flag-icon-squared' => '<span class="flag-icon flag-icon-'.$iso_a2.' flag-icon-squared"></span>',

            // https://github.com/lafeber/world-flags-sprite
            'world-flags-sprite' => '<span class="flag '.$cca3.'"></span>',

            // Internal svg file
            'svg' => $this->getFlagSvg($country['cca3']),

            'svg_path' => $this->getFlagSvgPath($country['cca3']),
        ];
    }
public function makeAllFlags($country)
    {
        return [
            // https://www.flag-sprites.com/
            // https://github.com/LeoColomb/flag-sprites
            'sprite' => '<span class="flag flag-'.($cca3 = strtolower($country['cca3'])).'"></span>',

            // https://github.com/lipis/flag-icon-css
            'flag-icon' => '<span class="flag-icon flag-icon-'.($iso_a2 = strtolower($country['iso_a2'])).'"></span>',
            'flag-icon-squared' => '<span class="flag-icon flag-icon-'.$iso_a2.' flag-icon-squared"></span>',

            // https://github.com/lafeber/world-flags-sprite
            'world-flags-sprite' => '<span class="flag '.$cca3.'"></span>',

            // Internal svg file
            'svg' => $this->getFlagSvg($country['cca3']),

            'svg_path' => $this->getFlagSvgPath($country['cca3']),
        ];
    }
public function makeAllFlags ( $ country ) { return [ // https://www.flag-sprites.com/ // https://github.com/LeoColomb/flag-sprites 'sprite' => '<span class="flag flag-' . ( $ cca3 = strtolower ( $ country [ 'cca3' ] ) ) . '"></span>' , // https://github.com/lipis/flag-icon-css 'flag-icon' => '<span class="flag-icon flag-icon-' . ( $ iso_a2 = strtolower ( $ country [ 'iso_a2' ] ) ) . '"></span>' , 'flag-icon-squared' => '<span class="flag-icon flag-icon-' . $ iso_a2 . ' flag-icon-squared"></span>' , // https://github.com/lafeber/world-flags-sprite 'world-flags-sprite' => '<span class="flag ' . $ cca3 . '"></span>' , // Internal svg file 'svg' => $ this -> getFlagSvg ( $ country [ 'cca3' ] ) , 'svg_path' => $ this -> getFlagSvgPath ( $ country [ 'cca3' ] ) , ] ; }
Make flags array for a coutry.

@param $country
@return array
Make flags array for a coutry .