HH\ImmSet::toArray
Returns an array built from the values from this ImmSet, array(val1 => val1, val2 => val2, ...)
public function toArray(): array<Tv, Tv>;
This maintains set-like semantics in array()
land: O(1) membership test with array_has_key($a['key'])
and iteration
with foreach($a as $member)
. Int-like strings end up with numerical array
keys.
Returns
array
Examples
See Set::toArray
for usage examples.