From e48ace26ba88d38e54664f1d920ff6888751341b Mon Sep 17 00:00:00 2001 From: VojtaB Date: Mon, 28 Oct 2024 16:47:39 +0100 Subject: [PATCH] small readme fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 45623807..1dd72229 100644 --- a/README.md +++ b/README.md @@ -321,16 +321,16 @@ $isoCodes = new \Sokil\IsoCodes\IsoCodesFactory(); $isoCodes->getCountries()->getByAlpha2('UA')->getLocalName(); ``` -Get localized name of country by it's alpha2 code: +Get localized name of country by it's alpha3 code: ```php $isoCodes = new \Sokil\IsoCodes\IsoCodesFactory(); -$isoCodes->getCountries()->getByAlpha2('UKR')->getLocalName(); +$isoCodes->getCountries()->getByAlpha3('UKR')->getLocalName(); ``` Get localized name of country by it's numeric code: ```php $isoCodes = new \Sokil\IsoCodes\IsoCodesFactory(); -$isoCodes->getCountries()->getByAlpha2('804')->getLocalName(); +$isoCodes->getCountries()->getByNumericCode('804')->getLocalName(); ``` Get localised list of countries