Query: resourcebundle_locales
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RESOURCEBUNDLE_LOCALES(3) 1 RESOURCEBUNDLE_LOCALES(3) ResourceBundle::getLocales - Get supported locales Object oriented styleSYNOPSISpublic array ResourceBundle::getLocales (string $bundlename)DESCRIPTIONProcedural style array resourcebundle_locales (string $bundlename) Get available locales from ResourceBundle name.PARAMETERSo $bundlename - Path of ResourceBundle for which to get available locales, or empty string for default locales list.RETURN VALUESReturns the list of locales supported by the bundle.EXAMPLESExample #1 resourcebundle_locales(3) example <?php $bundle = "/user/share/data/myapp"; echo join(PHP_EOL, resourcebundle_locales($bundle)); ?> The above example will output something similar to: es root Example #2 OO example <?php $bundle = "/usr/share/data/myapp"; $r = new ResourceBundle( 'es', $bundle); echo join(" ", $r->getLocales($bundle)); ?> The above example will output something similar to: es rootSEE ALSOresourcebundle_get(3). PHP Documentation Group RESOURCEBUNDLE_LOCALES(3)