22 public static function large(...$args)
25 $entry = array_pop($aArgs);
27 if ((is_numeric($entry)) && (!is_string($entry))) {
28 $entry = (int) floor($entry);
30 $mArgs = self::filter($aArgs);
33 if (($entry < 0) || ($entry >= $count) || ($count == 0)) {
38 return $mArgs[$entry];
57 public static function small(...$args)
61 $entry = array_pop($aArgs);
63 if ((is_numeric($entry)) && (!is_string($entry))) {
64 $entry = (int) floor($entry);
66 $mArgs = self::filter($aArgs);
69 if (($entry < 0) || ($entry >= $count) || ($count == 0)) {
74 return $mArgs[$entry];
83 protected static function filter(array $args): array
87 foreach ($args as $arg) {
89 if ((is_numeric($arg)) && (!is_string($arg))) {
static flattenArray($array)
Convert a multi-dimensional array to a simple 1-dimensional array.
static small(... $args)
SMALL.
static COUNT(... $args)
COUNT.
static large(... $args)
LARGE.
static filter(array $args)