Domanda

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

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top