is_iterable


is_iterable ( $var )

Parameters:
  • (mixed) $var The value to check.
Returns:
  • (bool) True if `$var` is iterable, false otherwise.
Defined at:

Description

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.

Related Functions

wp_is_writable, is_countable, win_is_writable, is_serialized, is_term

Top Google Results

User discussions

wpseek mobile