is_countable


is_countable ( $var )

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

Description

Polyfill for is_countable() function added in PHP 7.3.

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

Related Functions

is_iterable, is_front_page, wp_is_writable, display_plugins_table, disabled

Top Google Results

User discussions

wpseek mobile