WordPress at a glance
function is not described

is_iterable() WP 4.9.6

Polyfill for is_iterable() function added in PHP 7.1.

Verify that the content of a variable is an array or an object implementing the Traversable interface.

No Hooks.

Return

true/false. True if $var is iterable, false otherwise.

Usage

is_iterable( $var );
$var(mixed) (required)
The value to check.

Code of is iterable: wp-includes/compat.php VER 5.0.3

<?php
function is_iterable( $var ) {
	return ( is_array( $var ) || $var instanceof Traversable );
}