rest_is_array

The timeline below displays how wordpress function rest_is_array has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Determines if a given value is array-like.
 *
 * @since 5.5.0
 *
 * @param mixed $maybe_array The value being evaluated.
 * @return bool
 */
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);
}