/ LJCPHPCodeDoc / LJCCommonLib / LJC / HasElements


Parameters
$array - The array object.

Returns

true if the object is an array and has elements; otherwise false.

Syntax

PHP
public static function HasElements(?array $array): bool

Checks for array elements.

Example

PHP
 // Checks for array elements.
 private static function HasElements()
 {
   $array = [];
   $value = LJC::HasElements($array);
   $result = $value ? "true" : "false";
 
   // result:
   // false
 }

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