Alert: 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.

Command::is_assoc_array( $array )

Whether or not this is an associative array


Parameters Parameters

(array) (Required)


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: libraries/lifterlms-cli/src/Commands/Restful/Command.php

	private function is_assoc_array( $array ) {

		if ( ! is_array( $array ) ) {
			return false;
		}

		return array_keys( $array ) !== range( 0, count( $array ) - 1 );
	}

Top ↑

User Contributed Notes User Contributed Notes

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