update : 2015.11.03
php.shukuma.com검색:
|
http_negotiate_language(PECL pecl_http >= 0.1.0) http_negotiate_language — Negotiate client's preferred language 설명
string http_negotiate_language
( array
$supported
[, array &$result
] )This function negotiates the client's preferred language based on its Accept-Language HTTP header. The qualifier is recognized and languages without qualifier are rated highest. The qualifier will be decreased by 10% for partial matches (i.e. matching primary language). 인수
반환값Returns the negotiated language or the default language (i.e. first array entry) if none match. 예제
Example #1 Using http_negotiate_language()
<?php |