stdout() public static method

Prints a string to STDOUT.
public static stdout ( string $string ) : integer | boolean
$string string the string to print
return integer | boolean Number of bytes printed or false on error
コード例 #1
0
ファイル: Console.php プロジェクト: darkair/yii2-console
 /**
  * Prints a string to STDOUT.
  *
  * @param  string      $string the string to print
  * @return int|boolean Number of bytes printed or false on error
  */
 public static function stdout($string)
 {
     $indentStr = self::$isNewLine ? str_repeat('  ', self::$indent) : '';
     return parent::stdout($indentStr . $string);
 }