fuel/fuel/core/classes/arr.php
public static function is_assoc($arr)
	{
		if ( ! is_array($arr))
		{
			throw new \InvalidArgumentException('The parameter must be an array.');
		}

		$counter = 0;
		foreach ($arr as $key => $unused)
		{
			if ( ! is_int($key) or $key !== $counter++)
			{
				return true;
			}
		}
		return false;
	}
public static function is_assoc($arr)
	{
		if ( ! is_array($arr))
		{
			throw new \InvalidArgumentException('The parameter must be an array.');
		}

		$counter = 0;
		foreach ($arr as $key => $unused)
		{
			if ( ! is_int($key) or $key !== $counter++)
			{
				return true;
			}
		}
		return false;
	}
public static function is_assoc ( $ arr ) { if ( ! is_array ( $ arr ) ) { throw new \ InvalidArgumentException ( 'The parameter must be an array.' ) ; } $ counter = 0 ; foreach ( $ arr as $ key => $ unused ) { if ( ! is_int ( $ key ) or $ key !== $ counter ++ ) { return true ; } } return false ; }
Checks if the given array is an assoc array.

@param   array  $arr  the array to check
@return  bool   true if its an assoc array, false if not
Checks if the given array is an assoc array .