is_countable( mixed $var )
Polyfill for is_countable() function added in PHP 7.3 or WP 4.9.6.
Description Description
Verify that the content of a variable is an array or an object implementing the Countable interface.
Parameters Parameters
- $var
-
(Required) The value to check.
Return Return
(bool) True if $var
is countable, false otherwise.
Source Source
File: includes/misc-functions.php
Changelog Changelog
Version | Description |
---|---|
2.9.17 | Introduced. |