Country
in package
Country Names sorted by Thai name.
Tags
Table of Contents
- all() : array<string|int, mixed>
- Get a list of all country names in the specified language.
- get() : string
- Get country name based on ISO code and language.
- init() : array<string|int, mixed>
- Initialize country data.
Methods
all()
Get a list of all country names in the specified language.
public
static all() : array<string|int, mixed>
If the language is not available, use English. Can be used directly in forms.
Return values
array<string|int, mixed> —get()
Get country name based on ISO code and language.
public
static get(string $iso) : string
Returns an empty string if not found.
Parameters
- $iso : string
Tags
Return values
string —init()
Initialize country data.
private
static init() : array<string|int, mixed>