首页 WordPress函数大全 is_countable()

is_countable()

2020-05-02 / 4375阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

is_countable( mixed $var )

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.

参数

$var

(mixed)
(Required)
The value to check.

返回

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

大家谈论
    我的见解