Tribe__Utils__Array::remove_string_keys_recursive( array $input )

Recursively remove numeric keys from an array.


Parameters

$input

(<span class="arrayarray<string|">int,mixed>) (Required) The input array.


Top ↑

Return

(array<string,mixed>) An array that only contains non numeric keys at any of its levels.


Top ↑

Source

File: src/Tribe/Utils/Array.php

		public static function remove_string_keys_recursive( array $input ) {
			return self::array_visit_recursive(
				$input,
				static function ( $key ) {
					return !is_numeric( $key ) ? false : $key;
				}
			);
		}

Top ↑

Changelog

Changelog
Version Description
4.12.14 Introduced.