Uses
Uses | Description |
---|---|
wp-includes/functions.php: wp_parse_list() | Cleans up an array, comma- or space-separated list of scalar values. |
wp-includes/functions.php: wp_is_numeric_array() | Determines if the variable is a numeric-indexed array. |
Determines if a given value is array-like.
(mixed) (Required) The value being evaluated.
(bool)
File: wp-includes/rest-api.php
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 ); }
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/rest_is_array