src/Container.php
private function arrayClone(array $array) {
        return array_map(function ($element) {
            return ((is_array($element))
                ? $this->arrayClone($element)
                : ((is_object($element))
                    ? clone $element
                    : $element
                )
            );
        }, $array);
    }
private function arrayClone(array $array) {
        return array_map(function ($element) {
            return ((is_array($element))
                ? $this->arrayClone($element)
                : ((is_object($element))
                    ? clone $element
                    : $element
                )
            );
        }, $array);
    }
private function arrayClone ( array $ array ) { return array_map ( function ( $ element ) { return ( ( is_array ( $ element ) ) ? $ this -> arrayClone ( $ element ) : ( ( is_object ( $ element ) ) ? clone $ element : $ element ) ) ; } , $ array ) ; }
Deep clone an array.

@param array $array The array to clone.
@return array Returns the cloned array.
@see http://stackoverflow.com/a/17729234
Deep clone an array .