downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Locale::getDisplayVariant> <Locale::getDisplayRegion
Last updated: Fri, 14 Aug 2009

view this page in

Locale::getDisplayScript

locale_get_display_script

(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)

Locale::getDisplayScript -- locale_get_display_scriptRetourne le nom du script de la locale

Description

Style orienté objet

static string Locale::getDisplayScript ( string $locale [, string $in_locale ] )

Style procédural

string locale_get_display_script ( string $locale [, string $in_locale ] )

Retourne le nom du script de la locale. Si NULL est passé, la locale par défaut est utilisée.

Liste de paramètres

locale

La locale dont il faut retourner le script.

in_locale

Un format optionnel pour afficher le nom du script.

Valeurs de retour

Affiche le nom du script de la locale $locale au format indiqué par $in_locale.

Exemples

Exemple #1 Exemple avec locale_get_display_script(), procédural

<?php
echo locale_get_display_script('sl-Latn-IT-nedis''en');
echo 
";\n";
echo 
locale_get_display_script('sl-Latn-IT-nedis''fr');
echo 
";\n";
echo 
locale_get_display_script('sl-Latn-IT-nedis''de');
?>

Exemple #2 Exemple avec locale_get_display_script(), POO

<?php
echo Locale::getDisplayScript('sl-Latn-IT-nedis''en');
echo 
";\n";
echo 
Locale::getDisplayScript('sl-Latn-IT-nedis''fr');
echo 
";\n";
echo 
Locale::getDisplayScript('sl-Latn-IT-nedis''de');
?>

L'exemple ci-dessus va afficher :

Latin;
latin;
Lateinisch

Voir aussi



add a note add a note User Contributed Notes
Locale::getDisplayScript
There are no user contributed notes for this page.

Locale::getDisplayVariant> <Locale::getDisplayRegion
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites