Kotchasan

Country
in package

Country Names sorted by Thai name.

Tags
see
https://www.kotchasan.com/

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
assert

('TH') [==] 'ไทย'

Return values
string

init()

Initialize country data.

private static init() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results