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_Footer_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/footer/class-astra-update-footer-builder.php

	private function is_numeric_array( $array ) {
		if ( empty( $array ) ) {
			return true;
		}
		return array_keys( $array ) === range( 0, count( $array ) - 1 );
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.