HH\Vector::toValuesArray
Returns an array
containing the values from the current Vector
public function toValuesArray(): varray<Tv>;
This method is interchangeable with toArray()
.
Returns
varray<Tv>
- Anarray
containing the values from the currentVector
.
Examples
$v = Vector {'red', 'green', 'blue', 'yellow'};
$array = $v->toValuesArray();
\var_dump(\HH\is_any_array($array));
\var_dump($array);