PHP

PHP jest obiektowym, skryptowym jezykiem programowania zaprojektowanym do tworzenia dynamicznych stron www.


Funkcje PHP

Oficjalna strona PHP

Dodatkowe aplikacje PHP

Dodatkowe modu³y PHP

Wortal PHP
ksiegarnia internetowa - Pirotechnika - Autogiełda - wazne-dziela - Mieszkania w Lublinie - sielpia domki


http_negotiate_language

http_negotiate_language

(PECL)

http_negotiate_language -- Negotiate clients preferred language

Opis

string http_negotiate_language ( [array supported [, array &result]] )

This function negotiates the clients 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).

Parametry

supported

Array containing the supported languages as values

result

Will be filled with an array containing the negotiation results

Zwracane wartości

Returns the negotiated language or the default language (i.e. first array entry) if none match.

Przykłady

Przykład 1. Using http_negotiate_language()

<?php
$langs
= array(
        
'en-US',// default
        
'fr',
        
'fr-FR',
        
'de',
        
'de-DE',
        
'de-AT',
        
'de-CH',
);

include
'./langs/'. http_negotiate_language($langs, $result) .'.php';

print_r($result);
?>

hacking - zdjęcia szkolne - Nasz cel zapewnienie jakości oprogramowania dla Ciebie - odzyskiwanie danych Białystok - darmowe zdjęcia - tylko dobre łożyska mają gwarancję - Zarabianie w internecie - Flota zarządzanie flotą Katowice - programista - pozycjonowanie stron - darmowe galerie - odzyskiwanie danych z dysku - budowa stron internetowych - odzyskiwanie danych Katowice - sieci naprawa komputerów Szczecin serwis

G:2,M:0,Y:7