This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Update_Header_Builder::is_numeric_array( array $array )
Check if array is a numeric/sequential array (list) vs associative array (map).
Description
Parameters
- $array
-
(array) (Required) Array to check.
Return
(bool) True if numeric array, false if associative.
Source
File: inc/abilities/customizer/header/class-astra-update-header-builder.php
private function is_numeric_array( $array ) {
if ( empty( $array ) ) {
return true;
}
return array_keys( $array ) === range( 0, count( $array ) - 1 );
}
Expand full source code Collapse full source code View on Trac