downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<Locale::getDisplayVariantLocale::getPrimaryLanguage>
Last updated: Thu, 26 Jun 2008

Locale::getKeywords

locale_get_keywords

(No version information available, might be only in CVS)

locale_get_keywords — Gets the keywords for the input locale

Description

Object oriented style

static array Locale::getKeywords ( string $locale )

Procedural style

array locale_get_keywords ( string $locale )

Gets the keywords for the input locale.

Parameters

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() 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\n";
   }
}
?>

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\n";
   }
}
?>

The above example will output:

collation = PHONEBOOK
currency = EUR


add a noteadd a note User Contributed Notes
Gets the keywords for the input locale
There are no user contributed notes for this page.




<Locale::getDisplayVariantLocale::getPrimaryLanguage>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs