Menu
wpseek
mobile
Search
array_is_list
array_is_list
(
$arr
)
Parameters:
(array)
arr
The array being evaluated.
See:
https://github.com/symfony/polyfill-php81/tree/main
Returns:
(bool) True if array is a list, false otherwise.
Defined at:
wp-includes/compat.php
, line 421
Introduced in WordPress:
6.5.0
Deprecated in WordPress:
—
Description
Polyfill for `array_is_list()` function added in PHP 8.1.Determines if the given array is a list. An array is considered a list if its keys consist of consecutive numbers from 0 to count($array)-1.
Related Functions
array_key_last
,
array_key_first
,
wp_parse_list
,
wp_parse_id_list
,
_wp_array_set
Top Google Results
User discussions
More ...
New topic ...
wpseek
mobile
Recently added
3
wp_get_l10n_php_file_data
wp_render_elements_class_name
wp_should_add_elements_class_name
My Bookmarks
- Soon -
About
Imprint
Privacy Policy