Webpatser\Countries\Countries::getOne PHP Method

getOne() public method

Returns one country
public getOne ( string $id ) : array
$id string The country id
return array
    public function getOne($id)
    {
        $countries = $this->getCountries();
        return $countries[$id];
    }

Usage Example

 /**
  * Returns one country
  *
  * @param string $id The country id
  * @return array 
  * @static 
  */
 public static function getOne($id)
 {
     return \Webpatser\Countries\Countries::getOne($id);
 }