public function isPhone($userAgent = null)
    {
        if (null === $userAgent) {
            $this->init();
            $type = $this->type;
        } else {
            list($device, $type) = $this->determineDevice($userAgent);
        }

        return $type === 'phone';
    }
public function isPhone($userAgent = null)
    {
        if (null === $userAgent) {
            $this->init();
            $type = $this->type;
        } else {
            list($device, $type) = $this->determineDevice($userAgent);
        }

        return $type === 'phone';
    }
public function isPhone ( $ userAgent = null ) { if ( null === $ userAgent ) { $ this -> init ( ) ; $ type = $ this -> type ; } else { list ( $ device , $ type ) = $ this -> determineDevice ( $ userAgent ) ; } return $ type === 'phone' ; }
Returns true if any type of mobile device detected, including special ones.

@param string $userAgent optional to override the default user agent

@return bool
Returns true if any type of mobile device detected including special ones .