array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'gender-gender.country.php', 1 => 'Gender\\Gender::country', ), 'up' => array ( 0 => 'class.gender.php', 1 => 'Gender\\Gender', ), 'prev' => array ( 0 => 'gender-gender.construct.php', 1 => 'Gender\\Gender::__construct', ), 'next' => array ( 0 => 'gender-gender.get.php', 1 => 'Gender\\Gender::get', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gender/gender/country.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL gender >= 0.8.0)
Gender\Gender::country — Get textual country representation
Returns the textual representation of a country from a Gender class constant.
country
A country ID specified by a Gender\Gender class constant.
Returns an array with the short and full names of the country on success
başarısızlık durumunda false
döner.
Örnek 1 Using Gender\Gender::country()
$gender = new Gender\Gender;
var_dump($gender->country(Gender\Gender::BRITAIN));
Yukarıdaki örneğin çıktısı:
array(2) { 'country_short' => string(2) "UK" 'country' => string(13) "Great Britain" }