TagPHP

Detect User Language With PHP

D

This function uses php server variables to detect the “possible” language of the browser of the connected user. This let you show information with the correct language. Since the HTTP_ACCEPT_LANGUAGE variable contains many information there is some dirty job to do with regular expression to clean the variable and determine the most important value from the ones contained. The HTTP_ACCEPT_LANGUAGE...

Category