is_iterable

Advertisement

Summery Summery

Polyfill for is_iterable() function added in PHP 7.1.

Syntax Syntax

is_iterable( mixed $var )

Description Description

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

Parameters Parameters

$var

(Required) The value to check.

Return Return

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

Source Source

File: wp-includes/compat.php

// WebP constants are only defined in PHP 7.1+.
if ( ! defined( 'IMAGETYPE_WEBP' ) ) {

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.6 Introduced.

Advertisement

Leave a Reply