protected function cleanRange($range)
    {
        foreach (array('<', '>', '=', '~', '^', '||', '&&') as $character) {
            $range = str_replace($character.' ', $character, $range);
        }

        $range = preg_replace('/(?:[vV])(\d+)/', '${1}', $range);
        $range = str_replace(' ||', '||', $range);

        return str_replace(array(' &&', '&&'), ',', $range);
    }
protected function cleanRange($range)
    {
        foreach (array('<', '>', '=', '~', '^', '||', '&&') as $character) {
            $range = str_replace($character.' ', $character, $range);
        }

        $range = preg_replace('/(?:[vV])(\d+)/', '${1}', $range);
        $range = str_replace(' ||', '||', $range);

        return str_replace(array(' &&', '&&'), ',', $range);
    }
protected function cleanRange ( $ range ) { foreach ( array ( '<' , '>' , '=' , '~' , '^' , '||' , '&&' ) as $ character ) { $ range = str_replace ( $ character . ' ' , $ character , $ range ) ; } $ range = preg_replace ( '/(?:[vV])(\d+)/' , '${1}' , $ range ) ; $ range = str_replace ( ' ||' , '||' , $ range ) ; return str_replace ( array ( ' &&' , '&&' ) , ',' , $ range ) ; }
Clean the raw range.

@param string $range

@return string
Clean the raw range .