View Single Post
Old 07-18-2016, 01:00 AM   #3
smmexpertss
Registered User
 
Join Date: Sep 2015
Location: UK
Posts: 447
You don't have to have a fully-formed locale for the first parameter. This makes the function useful for getting the country name from any locale:

<?php
var_dump(Locale::getDisplayRegion('-US', 'fr'));

//Returns
string 'États-Unis' (length=11)
?>
smmexpertss is offline   Reply With Quote