StatesProvincesList
class StatesProvincesList (View source)
Properties
protected | $localizedStatesProvinces |
Methods
Returns the list of States/Provinces for some countries (States/Provinces are sorted alphabetically).
Returns the name of a specified State/Province in a specified Country.
Returns a list of States/Provinces for a country.
Details
array
getAll()
Returns the list of States/Provinces for some countries (States/Provinces are sorted alphabetically).
string|null
getStateProvinceName(string $code, string $country)
Returns the name of a specified State/Province in a specified Country.
array|null
getStateProvinceArray(string $country)
Returns a list of States/Provinces for a country.
array
getStates()
deprecated
deprecated Use getStateProvinceArray('US')
Returns the list of US states.
array
getCanadianProvinces()
deprecated
deprecated Use getStateProvinceArray('CA')
Returns the list of Canadian provinces.