is_countable

SummerySummery

Polyfill for is_countable() function added in PHP 7.3.

Syntax

is_countable( mixed $var )

DescriptionDescription

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

ParametersParameters

$var

(mixed) (Required) The value to check.

ReturnReturn

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

SourceSource

File: wp-includes/compat.php


			

ChangelogChangelog

Changelog
Version Description
4.9.6 Introduced.
Scroll to Top