[英]how to add Windows Phone 8.0 to Mobile_Detect.php class so it detects it
我有以下用户代理
[userAgent] => Mozilla / 5.0(兼容; MSIE 10.0; Windows Phone 8.0; Trident / 6.0; IEMobile / 10.0; ARM; Touch;诺基亚; Lumia 925)
但是我的功能
if ($detect->isMobile()) {
//it doesn't come true, it should come here
}
类别Ref# 移动检测
我有解决方案,以下情况将返回Windows版本
if ($detect->version('Windows Phone')) {
//will return Windows Phone [VER]
}
有一个protected static $properties = array()
方法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.