HH\Vector::reverse

Reverse the elements of the current Vector in place

public function reverse(): void;

Returns

  • void

Examples

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

$v->reverse();

\var_dump($v);