Home >Backend Development >PHP Tutorial >取得浏览器的信息_PHP

取得浏览器的信息_PHP

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 12:30:22957browse



取得浏览器的信息


function list_array ($array)   //定义函数
 {
   while (list ($key, $value) = each ($array))
   {
   $str= "$key: $value
\n";
   }
   return $str;
 }
 echo "$HTTP_USER_AGENT
\n";
 $browser = get_browser();
 print("
");
 echo list_array ((array) $browser);
?>


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
Previous article:PHP相关信息_PHPNext article:PHP函数点评_PHP