public static beginAnsiFormat ( array $format ) | ||
$format | array | An array containing formatting values. You can pass any of the `FG_*`, `BG_*` and `TEXT_*` constants and also [[xtermFgColor]] and [[xtermBgColor]] to specify a format. |
public static function beginAnsiFormat($format)
{
echo "[" . implode(';', $format) . 'm';
}