HH\Map::fromArray

Deprecated: Use new Map($arr) instead.

Returns a Map containing the key/value pairs from the specified array

public static function fromArray(
  darray<Tk, Tv> $arr,
): Map<Tk, Tv>;

This function is deprecated. Use newMap($arr) instead.

Parameters

Returns

  • Map<Tk,Tv> - A Map with the key/value pairs from the provided array.