rest_is_array( mixed $maybe_array )
Determines if a given value is array-like.
Parameters
- $maybe_array
-
(mixed) (Required) The value being evaluated.
Return
(bool)
Source
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 ); }
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/rest_is_array