protected function arrayToKey(array $array)
    {
        if ($this->isSequential($array)) {
            return $this->sequentialArrayToKey($array);
        }

        $parts = [];

        $keys = array_keys($array);
        sort($keys);

        foreach ($keys as $key) {
            $parts[] = $key;
            $parts[] = $this->castArrayValue($array[$key]);
        }

        return implode('_', $parts);
    }
protected function arrayToKey(array $array)
    {
        if ($this->isSequential($array)) {
            return $this->sequentialArrayToKey($array);
        }

        $parts = [];

        $keys = array_keys($array);
        sort($keys);

        foreach ($keys as $key) {
            $parts[] = $key;
            $parts[] = $this->castArrayValue($array[$key]);
        }

        return implode('_', $parts);
    }
protected function arrayToKey ( array $ array ) { if ( $ this -> isSequential ( $ array ) ) { return $ this -> sequentialArrayToKey ( $ array ) ; } $ parts = [ ] ; $ keys = array_keys ( $ array ) ; sort ( $ keys ) ; foreach ( $ keys as $ key ) { $ parts [ ] = $ key ; $ parts [ ] = $ this -> castArrayValue ( $ array [ $ key ] ) ; } return implode ( '_' , $ parts ) ; }
Turns an array into a key.

@param array $array

@return string
Turns an array into a key .