InputValidator::is_iterable( mixed $input ): bool

In this article

Verify whether a received input parameter is “iterable”.

Parameters

$inputmixedrequired
Input parameter to verify.

Return

bool

Source

public static function is_iterable($input) {
	return is_array($input) || $input instanceof Traversable;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.