Method
Console::write
Writes $markup to the stream, styled or plain as the console is.
Description#
public Console::write(
string $markup
): voidParameters#
- $markup string
- Text with
<!...>spans, see the class description
Errors / Exceptions#
| Exception | When |
|---|---|
InvalidArgumentException | For a pad, lpad, rpad or center without a width |
Examples#
$out = new Console();
$out->write("<!bold pad 12>--http<!><!dim>Serve HTTP here<!>\n");See also#
Console::logWrites a log line, in one format everywhere.