Home > Article > Backend Development > PHP knowledge point 3-HTTP header-Accept-Language
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.