SproutCMS

This is the code documentation for the SproutCMS project

function getStateName()

Get the name of a given state by looking it up in the states list

Usage

null|string $LocaleInfo->getStateName ( string $val );

Arguments

  1. string $val
    Values stored by the LocaleInfo::outputAddressFields dropdown field

Return value

  • string
    Full name of state, e.g. 'South Australia'
  • null
    If the country does not have states (e.g. Vatican City)