Ds\Map::toArray() function can convert a map to an array.
public array Ds\Map::toArray( void )
Ds\Map::toArray() function doesn't have any parameters.
Ds\Map::toArray() function can return an array containing all values in the same order as a map.
<?php $map = new \Ds\Map([1 => 10, 2 => 20, 3 => 30, 4 => 40]); print_r($map->toArray()); ?>
<?php $map = new \Ds\Map(["first" => "Tutorials", "second" => "Point", "third" => "Indaa"]); print_r($map->toArray()); ?>