/ LJCPHPCodeDoc / LJCCommonLib / LJC / HasValue


Parameters
$text - The text value.

Returns

true if the text has other than white space; otherwise false;

Syntax

PHP
public static function HasValue($text): bool

Checks for text.

Example

PHP
 // Checks for text.
 private static function HasValue()
 {
   $text = "Text";
   $value = LJC::HasValue($text);
   $result = $value ? "true" : "false";
 
   // result:
   // true
 }

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