PHP/mdetect.php
function DetectBlackBerry()
   {
       if ((stripos($this->useragent, $this->deviceBB) > -1) ||
          (stripos($this->httpaccept, $this->vndRIM) > -1))
         return $this->true;
      if ($this->DetectBlackBerry10Phone() == $this->true) 
         return $this->true;       
       else
         return $this->false; 
   }
function DetectBlackBerry()
   {
       if ((stripos($this->useragent, $this->deviceBB) > -1) ||
          (stripos($this->httpaccept, $this->vndRIM) > -1))
         return $this->true;
      if ($this->DetectBlackBerry10Phone() == $this->true) 
         return $this->true;       
       else
         return $this->false; 
   }
function DetectBlackBerry ( ) { if ( ( stripos ( $ this -> useragent , $ this -> deviceBB ) > - 1 ) || ( stripos ( $ this -> httpaccept , $ this -> vndRIM ) > - 1 ) ) return $ this -> true ; if ( $ this -> DetectBlackBerry10Phone ( ) == $ this -> true ) return $ this -> true ; else return $ this -> false ; }
Includes BB10 OS, but excludes the PlayBook.
Includes BB10 OS but excludes the PlayBook .