src/ADT/Tree/MagicNode.php
public function toArray(){
		$array	= array();
		foreach( $this->data as $key => $node ){
			if( count( $node->data ) )
				$array[$key]	= $node->toArray();
			else
				$array[$key]	= $node->value;
		}
		return $array;
	}
public function toArray(){
		$array	= array();
		foreach( $this->data as $key => $node ){
			if( count( $node->data ) )
				$array[$key]	= $node->toArray();
			else
				$array[$key]	= $node->value;
		}
		return $array;
	}
public function toArray ( ) { $ array = array ( ) ; foreach ( $ this -> data as $ key => $ node ) { if ( count ( $ node -> data ) ) $ array [ $ key ] = $ node -> toArray ( ) ; else $ array [ $ key ] = $ node -> value ; } return $ array ; }
Returns nested nodes as array.
@access		public
@return		array
Returns nested nodes as array .