Question

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)

but my function

if ($detect->isMobile()) {
  //it doesn't come true, it should come here  
}

Class Ref# Mobile Detect

Was it helpful?

Solution

i have got the solution, the following condition will return windows version

 if ($detect->version('Windows Phone')) {
   //will return Windows Phone [VER]
}

there is a protected static $properties = array() method

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top