console\Controller ansiFormat()

ansiFormat() public method

Formats a string with ANSI codes

You may pass additional parameters using the constants defined in yii\helpers\Console.

Example:

echo $this->ansiFormat('This will be red and underlined.', Console::FG_RED, Console::UNDERLINE);
public string ansiFormat ( $string )
$string string

The string to be formatted

doc_Yii
2016-10-30 16:54:42
Comments
Leave a Comment

Please login to continue.