console\Controller stdout()

stdout() public method

Prints a string to STDOUT

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

Example:

$this->stdout('This will be red and underlined.', Console::FG_RED, Console::UNDERLINE);
public integer|boolean stdout ( $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.