src/ADT/Tree/MagicNode.php
public function fromArray( $array ){
		foreach( $array as $key => $value ){
			if( is_array( $value ) ){
				$this->__set( $key, NULL );
				$this->data[$key]->fromArray( $value );
			}
			else{
				$this->__set( $key, $value );
			}
		}

	}
public function fromArray( $array ){
		foreach( $array as $key => $value ){
			if( is_array( $value ) ){
				$this->__set( $key, NULL );
				$this->data[$key]->fromArray( $value );
			}
			else{
				$this->__set( $key, $value );
			}
		}

	}
public function fromArray ( $ array ) { foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ this -> __set ( $ key , NULL ) ; $ this -> data [ $ key ] -> fromArray ( $ value ) ; } else { $ this -> __set ( $ key , $ value ) ; } } }
Imports array.
@access		public
@param		array		$array		Array to import
@return		void
Imports array .