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