src/CFPropertyList/CFTypeDetector.php
protected function isAssociativeArray($value)
    {
        $numericKeys = true;
        $i = 0;
        foreach ($value as $key => $v) {
            if ($i !== $key) {
                $numericKeys = false;
                break;
            }
            $i++;
        }
        return !$numericKeys;
    }
protected function isAssociativeArray($value)
    {
        $numericKeys = true;
        $i = 0;
        foreach ($value as $key => $v) {
            if ($i !== $key) {
                $numericKeys = false;
                break;
            }
            $i++;
        }
        return !$numericKeys;
    }
protected function isAssociativeArray ( $ value ) { $ numericKeys = true ; $ i = 0 ; foreach ( $ value as $ key => $ v ) { if ( $ i !== $ key ) { $ numericKeys = false ; break ; } $ i ++ ; } return ! $ numericKeys ; }
Determine if an array is associative or numerical.
Numerical Arrays have incrementing index-numbers that don't contain gaps.
@param array $value Array to check indexes of
@return boolean true if array is associative, false if array has numeric indexes
Determine if an array is associative or numerical . Numerical Arrays have incrementing index - numbers that don t contain gaps .