Query: locale_get_keywords
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LOCALE_GET_KEYWORDS(3) 1 LOCALE_GET_KEYWORDS(3) Locale::getKeywords - Gets the keywords for the input locale Object oriented styleSYNOPSISpublicstatic array Locale::getKeywords (string $locale)DESCRIPTIONProcedural style array locale_get_keywords (string $locale) Gets the keywords for the input locale.PARAMETERSo $locale - The locale to extract the keywords fromRETURN VALUESAssociative array containing the keyword-value pairs for this localeEXAMPLESExample #1 locale_get_keywords(3) example <?php $keywords_arr = locale_get_keywords( 'de_DE@currency=EUR;collation=PHONEBOOK' ); if ($keywords_arr) { foreach ($keywords_arr as $key => $value) { echo "$key = $value "; } } ?> Example #2 OO example <?php $keywords_arr = Locale::getKeywords( 'de_DE@currency=EUR;collation=PHONEBOOK' ); if ($keywords_arr) { foreach( $keywords_arr as $key => $value){ echo "$key = $value "; } } ?> The above example will output: collation = PHONEBOOK currency = EURSEE ALSOlocale_get_all_variants(3). PHP Documentation Group LOCALE_GET_KEYWORDS(3)