Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

locale_get_keywords(3) [php man page]

LOCALE_GET_KEYWORDS(3)							 1						    LOCALE_GET_KEYWORDS(3)

Locale::getKeywords - Gets the keywords for the input locale

	Object oriented style

SYNOPSIS
publicstatic array Locale::getKeywords (string $locale) DESCRIPTION
Procedural style array locale_get_keywords (string $locale) Gets the keywords for the input locale. PARAMETERS
o $locale - The locale to extract the keywords from RETURN VALUES
Associative array containing the keyword-value pairs for this locale EXAMPLES
Example #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 = EUR SEE ALSO
locale_get_all_variants(3). PHP Documentation Group LOCALE_GET_KEYWORDS(3)

Check Out this Related Man Page

LOCALE_GET_DISPLAY_NAME(3)						 1						LOCALE_GET_DISPLAY_NAME(3)

Locale::getDisplayName - Returns an appropriately localized display name for the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getDisplayName (string $locale, [string $in_locale]) DESCRIPTION
Procedural style string locale_get_display_name (string $locale, [string $in_locale]) Returns an appropriately localized display name for the input locale. If is NULL then the default locale is used. PARAMETERS
o $locale - The locale to return a display name for. o $in_locale -optional format locale RETURN VALUES
Display name of the locale in the format appropriate for $in_locale. EXAMPLES
Example #1 locale_get_display_name(3) example <?php echo locale_get_display_name('sl-Latn-IT-nedis', 'en'); echo "; "; echo locale_get_display_name('sl-Latn-IT-nedis', 'fr'); echo "; "; echo locale_get_display_name('sl-Latn-IT-nedis', 'de'); ?> Example #2 OO example <?php echo Locale::getDisplayName('sl-Latn-IT-nedis', 'en'); echo "; "; echo Locale::getDisplayName('sl-Latn-IT-nedis', 'fr'); echo "; "; echo Locale::getDisplayName('sl-Latn-IT-nedis', 'de'); ?> The above example will output: Slovenian (Latin, Italy, Natisone dialect); slovxc3xa8ne (latin, Italie, dialecte de Natisone; Slowenisch (Lateinisch, Italien, NEDIS) SEE ALSO
locale_get_display_language(3), locale_get_display_script(3), locale_get_display_region(3), locale_get_display_variant(3). PHP Documentation Group LOCALE_GET_DISPLAY_NAME(3)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to Parse a CSV file into a Different Format

Hi I have a CSV file with me in this format Currency, USD, EUR, USD, 1.00, 1.32, EUR, 0.66, 1.00, How do I transpose the file to get to the format below. currency, currency, rate USD, USD, 1.00 USD, EUR, 1.32 EUR, USD, 0.66 EUR, EUR, 1.00 Thanks for your help We are using... (2 Replies)
Discussion started by: cdesiks
2 Replies

2. UNIX for Dummies Questions & Answers

To remove the extra spaces in unix

Hi... I am quite new to Unix and would like an issue to be resolved. I have a file in the format below; 4,Reclaim,ECXTEST02,abc123,Harry Potter,5432 6730 0327 5469,0603,,MC,,1200,EUR,sho-001,,1,,,abc123,1223 I would like my output to be as follows; 4,Reclaim,ECXTEST02,abc123,Harry... (4 Replies)
Discussion started by: Sho
4 Replies

3. UNIX for Dummies Questions & Answers

Sed command with characters

Hi everyone, I hope that someone can help me out: In the following line: PRIHDR;2809999444;2007 6.1;20070423;9;;4021473000003;;4021473000003;8714231530688;EUR;; The output should be: PRIHDR;2809999444;2007 6.1;20070423;4;;4021473000003;;4021473000003;8714231530688;EUR;; I've tried... (7 Replies)
Discussion started by: IHulky
7 Replies

4. Shell Programming and Scripting

Korn Shell manipulating the string into dynamic currency number

Conversion of string into currency value.. ex1: number_of_positions=2 input_string=345987 Output= 345,987.00 ex2: number_of_positions=4 input_string=1345987 Output= 1,345,987.0000 Please respond as soon as possible edit by bakunin: we will gladly respond as soon as... (15 Replies)
Discussion started by: suren.bills
15 Replies