public function addContainersFromArray(array $array) {
        foreach ($array as $value) {
            $container = new C4GContainer();
            foreach ($value as $k => $v) {
                $container->addElement($v, $k);
            }
            $this->addElement($container);
        }
    }
public function addContainersFromArray(array $array) {
        foreach ($array as $value) {
            $container = new C4GContainer();
            foreach ($value as $k => $v) {
                $container->addElement($v, $k);
            }
            $this->addElement($container);
        }
    }
public function addContainersFromArray ( array $ array ) { foreach ( $ array as $ value ) { $ container = new C4GContainer ( ) ; foreach ( $ value as $ k => $ v ) { $ container -> addElement ( $ v , $ k ) ; } $ this -> addElement ( $ container ) ; } }
Add a two-dimensional array to the container, where every outer array element becomes a container
and every inner array element becomes an element of the corresponding container.
@param array $array
@throws \Exception
Add a two - dimensional array to the container where every outer array element becomes a container and every inner array element becomes an element of the corresponding container .