/ LJCPHPCodeDoc / LJCTextBuilderLib / LJCTextBuilder / GetIndentString


Returns

The current indent string.

Syntax

PHP
public function GetIndentString(): string

Returns the current indent string.

Example

PHP
 $tb = new LJCTextBuilder();
 
 $tb->AddIndent();
 
 // Example Method:
 $text = hb->GetIndentString();
 $tb->AddText($text);
 
 $tb->AddText(":");
 $result = hb->ToString();
 
 // result:
 //   :

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