Parameters
$text - The text value.
Returns
true if the text ends with a newline; otherwise false.
Syntax
| PHP |
|
public static function EndsWithNewLine(string $text): bool
|
Indicates if the builder text ends with a newline.
Example
| PHP |
// Indicates if the builder text ends with a newline.
private static function EndsWithNewLine()
{
$text = "What?\r\n";
$value = LJC::EndsWithNewLine($text);
$result = $value ? "true" : "false";
// result:
// true
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.