Method | Description | |
---|---|---|
write ( string | array $messages, boolean $newline = false, integer $options ) | Writes a message to the output. | |
writeln ( string | array $messages, integer $options ) | Writes a message to the output and adds a newline at the end. |
Method | Description | |
---|---|---|
replaceWord ( $matches ) | ||
replaceWords ( $messages ) |
public write ( string | array $messages, boolean $newline = false, integer $options ) | ||
$messages | string | array | The message as an array of lines or a single string |
$newline | boolean | Whether to add a newline |
$options | integer | A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |