Ds\Vector::reverse

(PECL ds >= 1.0.0)

Ds\Vector::reverse Reverses the vector in-place

˵��

public Ds\Vector::reverse ( void ) : void

Reverses the vector in-place.

����

�˺���û�в�����

����ֵ

û�з���ֵ��

����

Example #1 Ds\Vector::reverse() example

<?php
$vector 
= new \Ds\Vector(["a""b""c"]);
$vector->reverse();

print_r($vector);
?>

�������̵���������ڣ�

Ds\Vector Object
(
    [0] => c
    [1] => b
    [2] => a
)