Query: collator_get_locale
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
COLLATOR_GET_LOCALE(3) 1 COLLATOR_GET_LOCALE(3) Collator::getLocale - Get the locale name of the collator Object oriented styleSYNOPSISpublic string Collator::getLocale (int $type)DESCRIPTIONProcedural style string collator_get_locale (Collator $coll, int $type) Get collector locale name.PARAMETERSo $coll -Collator object. o $type - You can choose between valid and actual locale ( Locale::VALID_LOCALE and Locale::ACTUAL_LOCALE, respectively).RETURN VALUESReal locale name from which the collation data comes. If the collator was instantiated from rules or an error occurred, returns boolean FALSE.EXAMPLESExample #1 collator_get_locale(3) example <?php $coll = collator_create( 'en_US_California' ); $res_val = collator_get_locale( $coll, Locale::VALID_LOCALE ); $res_act = collator_get_locale( $coll, Locale::ACTUAL_LOCALE ); printf( "Valid locale name: %s Actual locale name: %s ", $res_val, $res_act ); ?> The above example will output: Requested locale name: en_US_California Valid locale name: en_US Actual locale name: enSEE ALSOcollator_create(3). PHP Documentation Group COLLATOR_GET_LOCALE(3)
Related Man Pages |
---|
collator_sort_with_sort_keys(3) - php |
collator_sort(3) - php |
locale_get_display_script(3) - php |
locale_get_primary_language(3) - php |
collator.__construct(3) - php |
Similar Topics in the Unix Linux Community |
---|
Locale settings and awk |
Locale woes |
Anyone Running Vintage UNIXen? |