ResourceBundle::getLocalesresourcebundle_localesGet supported locales DescriptionObject oriented style
public
array
ResourceBundle::getLocales
( string
$bundlename
)Procedural style
array
resourcebundle_locales
( string
$bundlename
)Get available locales from ResourceBundle name. Parameters
Return ValuesReturns the list of locales supported by the bundle. ExamplesExample #1 resourcebundle_locales example
<?php The above example will output something similar to: es root Example #2 OO example
<?php The above example will output something similar to: es root See Also
|