public function getMobileRules()
    {
        $arrReturn = array();
        foreach($this->MobileDetect->getRules() as $name => $regex)
        {
            $check = $this->MobileDetect->{'is'.$name}();
            if($check)
            {
                array_push($arrReturn, $name);
            }
        }
        return $arrReturn;
    }
public function getMobileRules()
    {
        $arrReturn = array();
        foreach($this->MobileDetect->getRules() as $name => $regex)
        {
            $check = $this->MobileDetect->{'is'.$name}();
            if($check)
            {
                array_push($arrReturn, $name);
            }
        }
        return $arrReturn;
    }
public function getMobileRules ( ) { $ arrReturn = array ( ) ; foreach ( $ this -> MobileDetect -> getRules ( ) as $ name => $ regex ) { $ check = $ this -> MobileDetect -> { 'is' . $ name } ( ) ; if ( $ check ) { array_push ( $ arrReturn , $ name ) ; } } return $ arrReturn ; }
getMobileRules - Custom detection methods, only on mobile devices

@return    array    array(name => value, name => value, ...)
@example            array('Samsung', 'AndroidOS', 'Safari')
getMobileRules - Custom detection methods only on mobile devices