首页 WordPress函数大全 map_deep()

map_deep()

2020-05-02 / 5748阅 / 悠然

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

map_deep( mixed $value, callable $callback )

将函数映射到数组或对象的所有不可迭代的元素。

描述

这类似于array_walk_recursive(),但也作用于对象。

参数

$value

(mixed)
(Required)
The array, object, or scalar.

$callback

(callable)
(Required)
The function to map>

返回

(mixed) The value with the callback applied to all non-arrays and non-objects inside it.

大家谈论
    我的见解