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
Contents
Parameters Parameters
-
(array) (Required)
Return Return
(bool)
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 ); }
Expand full source code Collapse full source code View on GitHub