static public function iteratorToArray(Traversable $iterator) {
		$array = [];
		
		foreach ($iterator as $key => $value) {
			if ($value instanceof Traversable) {
				$value = self::iteratorToArray($value);
			}
			
			$array[$key] = $value;
		}
		
		return $array;
	}
static public function iteratorToArray(Traversable $iterator) {
		$array = [];
		
		foreach ($iterator as $key => $value) {
			if ($value instanceof Traversable) {
				$value = self::iteratorToArray($value);
			}
			
			$array[$key] = $value;
		}
		
		return $array;
	}
static public function iteratorToArray ( Traversable $ iterator ) { $ array = [ ] ; foreach ( $ iterator as $ key => $ value ) { if ( $ value instanceof Traversable ) { $ value = self :: iteratorToArray ( $ value ) ; } $ array [ $ key ] = $ value ; } return $ array ; }
Recursively iterator to array converter

@param  Traversable $iterator
@return array
Recursively iterator to array converter