HH\Map::toValuesArray

Returns an array containing the values from the current Map

public function toValuesArray(): varray<Tv>;

Returns

  • varray<Tv> - an integer-indexed array containing the values from the current Map.

Examples

$m = Map {
  'red' => '#ff0000',
  'green' => '#00ff00',
  'blue' => '#0000ff',
  'yellow' => '#ffff00',
};

$array = $m->toValuesArray();

\var_dump(\HH\is_any_array($array));
\var_dump($array);