牛骨文教育服务平台(让学习变的简单)
博文笔记

php获取手机型号

创建时间:2016-10-12 投稿人: 浏览次数:4181
<?php $user_agent = $_SERVER["HTTP_USER_AGENT"];     if (stripos($user_agent, "iPhone")!==false) {         $brand = "iPhone";     } else if (stripos($user_agent, "SAMSUNG")!==false || stripos($user_agent, "Galaxy")!==false || strpos($user_agent, "GT-")!==false || strpos($user_agent, "SCH-")!==false || strpos($user_agent, "SM-")!==false) {         $brand = "三星";     } else if (stripos($user_agent, "Huawei")!==false || stripos($user_agent, "Honor")!==false || stripos($user_agent, "H60-")!==false || stripos($user_agent
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。