is_iterable

SummerySummery

Polyfill for is_iterable() function added in PHP 7.1.

Syntax

is_iterable( mixed $var )

DescriptionDescription

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

ParametersParameters

$var

(mixed) (Required) The value to check.

ReturnReturn

(bool) True if $var is iterable, false otherwise.

SourceSource

File: wp-includes/compat.php


			

ChangelogChangelog

Changelog
Version Description
4.9.6 Introduced.
Scroll to Top