/ LJCPHPCodeDoc / LJCTextBuilderLib / LJCTextBuilder / AddLine


Parameters
$text - The add text.

Returns

The added text line.

Syntax

PHP
public function AddLine(string $text = null): string

Appends a text line without modification.

Remarks

AddLine() is an "Append" method. It adds the unmodified text line to the builder.

Example

PHP
 $tb = new LJCTextBuilder();
 
 // Example Method:
 $tb->AddLine("This is an appended line.");
 
 $tb->AddText(":");
 $result = $tb->ToString();
 
 // result:
 // This is an appended line.
 // :

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.