Parameters
$text - The text value.
$indent - The number of tabs to add to the line beginning.
$addBreak - Adds an HTML break before the cr/lf.
Syntax
PHP |
public function Line(?string $text, int $indent = 0 , bool $addBreak = false)
|
Appends a text line with indents.
Example
PHP |
include_once "LJCRoot.php";
$prefix = RelativePrefix();
include_once "$prefix/LJCPHPCommon/LJCTextLib.php";
$builder = new StringBuilder();
$builder->AppendLine("First");
$builder->AppendLine("Second", 1);
// $text =
// First
// Second
$text = $builder->ToString();
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.