Menu
wpseek
mobile
Search
array_first
array_first
(
$array
)
Parameters:
(array)
array
The array to get the first element from.
Returns:
(mixed|null) The first element of the array, or null if the array is empty.
Defined at:
wp-includes/compat.php
, line 657
Introduced in WordPress:
6.9.0
Deprecated in WordPress:
—
Description
Polyfill for `array_first()` function added in PHP 8.5.Returns the first element of an array.
Related Functions
array_find
,
array_last
,
array_is_list
,
_wp_array_set
,
array_find_key
Top Google Results
User discussions
More ...
New topic ...
wpseek
mobile
Recently added
17
is_random
wp_admin_page_exists
wp_custom_css_has_value
wp_flush_rewrite_rules_on_site_language_change
wp_get_custom_css_state_entries
wp_get_random_content_post_types
wp_interactivity_as_dangerous_html
wp_is_random_content_query
wp_is_random_content_redirect_enabled
wp_process_custom_css_state_entries
wp_random_content_flush_rewrite_rules_for_post
wp_random_content_post_limits
wp_random_content_posts_orderby
wp_random_content_pre_get_posts
wp_random_content_redirect
wp_random_content_split_the_query
wp_strip_custom_css_from_style_array
My Bookmarks
- Soon -
About
Imprint
Privacy Policy