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 AppendLine(?string $text, int $indent = 0 , bool $addBreak = false)
|
Appends a text line with indents.
Example
PHP |
$webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
require_once "$webCommonPath/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.