protected function filterAndroid(array &$userAgent) {
        if ('safari' === $userAgent['browser_name'] && strpos($userAgent['string'], 'android ')) {
            $userAgent['browser_name'] = 'android';
            $userAgent['operating_system'] = 'android';
            $userAgent['browser_version'] = preg_replace('|.+android ([0-9]+(?:\.[0-9]+)+).+|', '$1', $userAgent['string']);
        }
    }
protected function filterAndroid(array &$userAgent) {
        if ('safari' === $userAgent['browser_name'] && strpos($userAgent['string'], 'android ')) {
            $userAgent['browser_name'] = 'android';
            $userAgent['operating_system'] = 'android';
            $userAgent['browser_version'] = preg_replace('|.+android ([0-9]+(?:\.[0-9]+)+).+|', '$1', $userAgent['string']);
        }
    }
protected function filterAndroid ( array & $ userAgent ) { if ( 'safari' === $ userAgent [ 'browser_name' ] && strpos ( $ userAgent [ 'string' ] , 'android ' ) ) { $ userAgent [ 'browser_name' ] = 'android' ; $ userAgent [ 'operating_system' ] = 'android' ; $ userAgent [ 'browser_version' ] = preg_replace ( '|.+android ([0-9]+(?:\.[0-9]+)+).+|' , '$1' , $ userAgent [ 'string' ] ) ; } }
Android has a safari like signature
Android has a safari like signature