/ LJCPHPCodeDoc / LJCTextBuilderLib / LJCTextBuilder / StartWithNewLine


Parameters
$allowNewLine - Indicates if a new line can be added.

Returns

true if allowed to start with a newline; otherwise false.

Syntax

PHP
public function StartWithNewLine(bool $allowNewLine): bool

Checks if the text can start with a newline.

Example

PHP
 $tb = new LJCTextBuilder();
 
 // Example Method:
 $allowNewLine = true;
 $retValue = hb->StartWithNewLine($allowNewLine);
 $result = $retValue ? "true" : "false";
 
 // result:
 // "false"

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