console\Controller stderr()

stderr() public method

Prints a string to STDERR

You may optionally format the string with ANSI codes by passing additional parameters using the constants defined in yii\helpers\Console.

Example:

$this->stderr('This will be red and underlined.', Console::FG_RED, Console::UNDERLINE);
public integer|boolean stderr ( $string )
$string string

The string to print

return integer|boolean

Number of bytes printed or false on error

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

Please login to continue.