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

PHP knowledge point 3-HTTP header-Accept-Language

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-28 08:27:03
Original
2094 people have browsed it

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.

Related labels:
Statement of this Website
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
Latest Issues
Is this in Java language?
From 1970-01-01 08:00:00
0
0
0
php is the best language in the world
From 1970-01-01 08:00:00
0
0
0
How to do scheduled tasks in php language
From 1970-01-01 08:00:00
0
0
0
C language calculation order problem
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template