返回格式化后的字符串
public static colour ( string $text, string | array | integer $foregroundColors = null, string | integer $backgroundColors = null ) : string | ||
$text | string | 要着色的文本 |
$foregroundColors | string | array | integer | 前景色 eg: red、red+highlight、Colors::BLACK、[Colors::BLACK, Colors::HIGHLIGHT] |
$backgroundColors | string | integer | 背景色 |
return | string |