HH\Vector::toVArray

Returns a varray built from the values from this Vector

public function toVArray(): varray<Tv>;

Returns

Examples

$v = Vector {'red', 'green', 'blue', 'yellow'};

$array = $v->toVArray();

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