PHP jump to the corresponding page according to the user language, PHP language jump corresponding
When the visitor's browser language is Chinese to enter the Chinese layout, foreign users default browser is not Chinese to jump English page.
<?php $lan = substr ($HTTP _accept_language,0,5); if ($lan = = "ZH-CN") print ("
"), Else print ("
HTML pages automatically jump to multilingual pages based on the browser language you visit
Add The following code between them.
The following is the referenced content:
The above is the PHP to determine the user language jump page of the entire content, the content is very simple, I hope you can apply.
http://www.bkjia.com/PHPjc/1067824.html www.bkjia.com true http://www.bkjia.com/PHPjc/1067824.html techarticle PHP According to the user language to jump to the corresponding page, the PHP language jump corresponding when the visitor browser language is Chinese to enter the Chinese layout, foreign users default browser is not Chinese to jump in English ...