framework/console/Controller.php
public function stderr($string)
    {
        if ($this->isColorEnabled(\STDERR)) {
            $args = func_get_args();
            array_shift($args);
            $string = Console::ansiFormat($string, $args);
        }

        return fwrite(\STDERR, $string);
    }
public function stderr($string)
    {
        if ($this->isColorEnabled(\STDERR)) {
            $args = func_get_args();
            array_shift($args);
            $string = Console::ansiFormat($string, $args);
        }

        return fwrite(\STDERR, $string);
    }
public function stderr ( $ string ) { if ( $ this -> isColorEnabled ( \ STDERR ) ) { $ args = func_get_args ( ) ; array_shift ( $ args ) ; $ string = Console :: ansiFormat ( $ string , $ args ) ; } return fwrite ( \ STDERR , $ string ) ; }
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);
```

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