rest_is_array

函数


rest_is_array ( $maybe_array )
参数
  • (mixed)
    $maybe_array
    The value being evaluated.
    Required:
返回值
  • (bool)
定义位置
  • wp-includes/rest-api.php
    , line 1498
引入
5.5.0
弃用

Determines if a given value is array-like.

function rest_is_array( $maybe_array ) {
	if ( is_scalar( $maybe_array ) ) {
		$maybe_array = wp_parse_list( $maybe_array );
	}

	return wp_is_numeric_array( $maybe_array );
}