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 463
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_array_set
,
wp_parse_id_list
,
wp_parse_list
Top Google Results
User discussions
More ...
New topic ...
wpseek
mobile
Recently added
5
get_user
user_can_for_blog
wp_interactivity_get_element
wp_register_block_metadata_collection
wp_register_core_block_metadata_collection
My Bookmarks
- Soon -
About
Imprint
Privacy Policy