public function getIso($code = null)
    {
        $data = (array) gplcart_config_get(GC_FILE_CONFIG_LANGUAGE);

        if (isset($code)) {
            return isset($data[$code]) ? (array) $data[$code] : array();
        }

        return $data;
    }
public function getIso($code = null)
    {
        $data = (array) gplcart_config_get(GC_FILE_CONFIG_LANGUAGE);

        if (isset($code)) {
            return isset($data[$code]) ? (array) $data[$code] : array();
        }

        return $data;
    }
public function getIso ( $ code = null ) { $ data = ( array ) gplcart_config_get ( GC_FILE_CONFIG_LANGUAGE ) ; if ( isset ( $ code ) ) { return isset ( $ data [ $ code ] ) ? ( array ) $ data [ $ code ] : array ( ) ; } return $ data ; }
Returns an array of common languages with their English and native names
@param null|string $code
@return array
Returns an array of common languages with their English and native names