CaMykS  1.0-20231201
Functions
countries.php.inc File Reference

Functions

 countries_getCodeList ($params=array())
 Countries specific methods. More...
 
 countries_getList ()
 
 countries_getTitleList ($params=array())
 
 countries_loadLocales ($language=null)
 
 countries_getTranslation ($country='')
 
 countries_getCode ($lang='', $key='')
 
 countries_loadData ()
 
 countries_getSingleDataValue ($country, $data)
 
 countries_getDataList ($data)
 
 countries_getPhonePrefixes ()
 
 countries_getPhonePrefix ($country)
 

Function Documentation

◆ countries_getCodeList()

countries_getCodeList (   $params = array())

Countries specific methods.

Country codes defined by ISO 3166-2 list

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.4
Date
Creation: Sep 2007
Modification: Nov 2023
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Return countries code list.
Parameters
array$params
Returns
array

◆ countries_getList()

countries_getList ( )

Return generic country list.

Returns
array

◆ countries_getTitleList()

countries_getTitleList (   $params = array())

Return custom country list.

Parameters
array$params
Returns
array

◆ countries_loadLocales()

countries_loadLocales (   $language = null)

Load countries locales.

Parameters
string$language
Returns
void

◆ countries_getTranslation()

countries_getTranslation (   $country = '')

Return country localised name.

Parameters
string$country
Returns
string

◆ countries_getCode()

countries_getCode (   $lang = '',
  $key = '' 
)

Return country code from name.

Parameters
string$lang
string$key
Returns
string on success, false on error

◆ countries_loadData()

countries_loadData ( )

Load countries data.

Returns
void

◆ countries_getSingleDataValue()

countries_getSingleDataValue (   $country,
  $data 
)

Return countries single data value.

Parameters
string$country
string$data
Returns
mixed

◆ countries_getDataList()

countries_getDataList (   $data)

Return countries data list.

Parameters
string$data
Returns
array

◆ countries_getPhonePrefixes()

countries_getPhonePrefixes ( )

Return country phone prefixes list.

Returns
array

◆ countries_getPhonePrefix()

countries_getPhonePrefix (   $country)

Return phone prefix value for given country.

Parameters
string$country
Returns
string