protected function getArrayType(array $array) {
		$indices = count(array_filter(array_keys($array), 'is_string'));

		if ($indices == 0) {
			$type = self::ARRAY_TYPE_LIST;
		} elseif ($indices == count($array)) {
			$type = self::ARRAY_TYPE_DICT;
		} else {
			$type = self::ARRAY_TYPE_MIXED;
		}

		return $type;
	}
protected function getArrayType(array $array) {
		$indices = count(array_filter(array_keys($array), 'is_string'));

		if ($indices == 0) {
			$type = self::ARRAY_TYPE_LIST;
		} elseif ($indices == count($array)) {
			$type = self::ARRAY_TYPE_DICT;
		} else {
			$type = self::ARRAY_TYPE_MIXED;
		}

		return $type;
	}
protected function getArrayType ( array $ array ) { $ indices = count ( array_filter ( array_keys ( $ array ) , 'is_string' ) ) ; if ( $ indices == 0 ) { $ type = self :: ARRAY_TYPE_LIST ; } elseif ( $ indices == count ( $ array ) ) { $ type = self :: ARRAY_TYPE_DICT ; } else { $ type = self :: ARRAY_TYPE_MIXED ; } return $ type ; }
Determines wether an array is index or key based

@param array $array

@return int
Determines wether an array is index or key based