src/abstracts/AbstractOutput.php
public static function stdout($string)
    {
        $args = func_get_args();
        array_shift($args);

        if (empty($args)) {
            return Console::stdout($string);
        }

        $string = Console::ansiFormat($string, $args);
        return Console::stdout($string);
    }
public static function stdout($string)
    {
        $args = func_get_args();
        array_shift($args);

        if (empty($args)) {
            return Console::stdout($string);
        }

        $string = Console::ansiFormat($string, $args);
        return Console::stdout($string);
    }
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);
```

@param string $string the string to print
@return int|bool Number of bytes printed or false on error