Menu

## Country
in package

Country.php : 18

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()

Country.php : 312

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()

Country.php : 297

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()

Country.php : 25

Initialize country data.

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

##### Return values

array<string|int, mixed> —

## Search results