public static function set($str, $color)
    {
        $color_attrs = explode("+", $color);
        $ansi_str    = "";
        foreach ($color_attrs as $attr) {
            $ansi_str .= "\033[".self::$ANSI_CODES[$attr]."m";
        }
        $ansi_str .= $str."\033[".self::$ANSI_CODES["off"]."m";
        return $ansi_str;
    }
public static function set($str, $color)
    {
        $color_attrs = explode("+", $color);
        $ansi_str    = "";
        foreach ($color_attrs as $attr) {
            $ansi_str .= "\033[".self::$ANSI_CODES[$attr]."m";
        }
        $ansi_str .= $str."\033[".self::$ANSI_CODES["off"]."m";
        return $ansi_str;
    }
public static function set ( $ str , $ color ) { $ color_attrs = explode ( "+" , $ color ) ; $ ansi_str = "" ; foreach ( $ color_attrs as $ attr ) { $ ansi_str .= "\033[" . self :: $ ANSI_CODES [ $ attr ] . "m" ; } $ ansi_str .= $ str . "\033[" . self :: $ ANSI_CODES [ "off" ] . "m" ; return $ ansi_str ; }
Set Ansi Color

@param string $str
@param string $color
@return string
Set Ansi Color