src/Common.php
final public static function check_idict(
		array $array, array $keys, bool $trim=false
	) {
		if (false === $array = self::check_dict($array, $keys, $trim))
			return false;
		foreach ($array as $val) {
			if (!is_numeric($val) && !is_string($val))
				return false;
		}
		return $array;
	}
final public static function check_idict(
		array $array, array $keys, bool $trim=false
	) {
		if (false === $array = self::check_dict($array, $keys, $trim))
			return false;
		foreach ($array as $val) {
			if (!is_numeric($val) && !is_string($val))
				return false;
		}
		return $array;
	}
final public static function check_idict ( array $ array , array $ keys , bool $ trim = false ) { if ( false === $ array = self :: check_dict ( $ array , $ keys , $ trim ) ) return false ; foreach ( $ array as $ val ) { if ( ! is_numeric ( $ val ) && ! is_string ( $ val ) ) return false ; } return $ array ; }
Check if a dict contains all necessary keys with elements being
immutables, i.e. numeric or string.

@param array $array Dict to verify.
@param array $keys List of keys to verify against.
@param bool $trim Whether it should treat everything as string
and trim the values and drop keys of those with empty values.
@return bool|array False on failure, filtered dict otherwise.
Check if a dict contains all necessary keys with elements being immutables i . e . numeric or string .