english/libraries/joomla/utilities/arrayhelper.php
/**
	 * Method to determine if an array is an associative array.
	 *
	 * @param   array  $array  An array to test.
	 *
	 * @return  boolean  True if the array is an associative array.
	 *
	 * @since   11.1
	 */
Method to determine if an array is an associative array.

@return  boolean  True if the array is an associative array.


Method to determine if an array is an associative array . @return boolean True if the array is an associative array .
public static function isAssociative($array)
	{
		if (is_array($array)) {
			foreach (array_keys($array) as $k => $v) {
				if ($k !== $v) {
					return true;
				}
			}
		}
		return false;
	}
public static function isAssociative ( $ array ) { if ( is_array ( $ array ) ) { foreach ( array_keys ( $ array ) as $ k => $ v ) { if ( $ k !== $ v ) { return true ; } } } return false ; }
Method to determine if an array is an associative array.
Method to determine if an array is an associative array .