public static function minify($string, $noSpace = false)
    {
        $string = preg_replace("/\s+/", ' ', $string);
        return $noSpace ? str_replace(' ', '', $string) : $string;
    }
public static function minify($string, $noSpace = false)
    {
        $string = preg_replace("/\s+/", ' ', $string);
        return $noSpace ? str_replace(' ', '', $string) : $string;
    }
public static function minify ( $ string , $ noSpace = false ) { $ string = preg_replace ( "/\s+/" , ' ' , $ string ) ; return $ noSpace ? str_replace ( ' ' , '' , $ string ) : $ string ; }
deletes linebreaks and tabs from string

@access public
@param  string $string
@param  bool   $noSpace if true spaces will be deleted, too
@return string
deletes linebreaks and tabs from string