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 new
Map($arr)
instead.
Parameters
darray<Tk, Tv> $arr
- Thearray
to convert to aMap
.