Home  >  Article  >  Backend Development  >  PHP knowledge point 3-HTTP header-Accept-Language

PHP knowledge point 3-HTTP header-Accept-Language

WBOY
WBOYOriginal
2016-07-28 08:27:032029browse

1. Overview
IE uses the Windows default locale to determine the Accept-Language attribute.
Windows default locale can be obtained through the Win32 API function GetUserDefaultLCID.
In addition, the shell API provides the GetAcceptLanguages ​​function to obtain IE's Accept-Language.
2. Example
Accept-Language: zh-CN,fr-FR;q=0.5
zh-CN Chinese
fr-FR French

The above has introduced PHP knowledge point 3-HTTP header-Accept-Language, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn