首页 WordPress函数大全 array_replace_recursive()

array_replace_recursive()

2020-05-01 / 4053阅 / 悠然

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

array_replace_recursive( array $base = array(), array $replacements = array() )

PHP-agnostic version of {@link array_replace_recursive()}.

描述

The array_replace_recursive() function is a PHP 5.3 function. WordPress currently supports down to PHP 5.2, so this method is a workaround for PHP 5.2.

Note: array_replace_recursive() supports infinite arguments, but for our use- case, we id="see-also" tabindex="-1">See also See also

  • https://secure.php.net/manual/en/function.array-replace-recursive.php#109390

Top ↑

参数

$base

(array)
(Optional)
Array with keys needing to be replaced.

Default value: array()

$replacements

(array)
(Optional)
Array with the replaced keys.

Default value: array()

返回

(array)

大家谈论
    我的见解