src/Util/NumberUtil.php
public static function stripNonInteger(array $array): array {
        $newArray = [];
        foreach ($array as $value) {
            if (!NumberUtil::isInteger($value)) continue;
            $newArray[] = \intval($value);
        }
        return $newArray;
    }
public static function stripNonInteger(array $array): array {
        $newArray = [];
        foreach ($array as $value) {
            if (!NumberUtil::isInteger($value)) continue;
            $newArray[] = \intval($value);
        }
        return $newArray;
    }
public static function stripNonInteger ( array $ array ) : array { $ newArray = [ ] ; foreach ( $ array as $ value ) { if ( ! NumberUtil :: isInteger ( $ value ) ) continue ; $ newArray [ ] = \ intval ( $ value ) ; } return $ newArray ; }
strips all non integer fields from the input and returns all
values as integer data type.

@param array $array
@return array
strips all non integer fields from the input and returns all values as integer data type .