首页 WordPress函数大全 is_iterable()

is_iterable()

2020-05-02 / 3481阅 / 悠然

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

is_iterable( mixed $var )

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.

参数

$var

(mixed)
(Required)
The value to check.

返回

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

大家谈论
    我的见解