downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Gender\Gender::get> <Gender\Gender::__construct
[edit] Last updated: Fri, 17 May 2013

view this page in

Gender\Gender::country

(PECL gender >= 0.8.0)

Gender\Gender::countryGet textual country representation

Beschreibung

public array Gender\Gender::country ( integer $country )

Returns the textual representation of a country from a Gender class constant.

Parameter-Liste

country

A country ID specified by a Gender\Gender class constant.

Rückgabewerte

Returns an array with the short and full names of the country on success Im Fehlerfall wird FALSE zurückgegeben..

Beispiele

Beispiel #1 Using Gender\Gender::country()

$gender = new Gender\Gender;
var_dump($gender->country(Gender\Gender::BRITAIN));

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

array(2) {
  'country_short' =>
  string(2) "UK"
  'country' =>
  string(13) "Great Britain"
}



add a note add a note User Contributed Notes Gender\Gender::country - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites