Ds\Set::reverse

(PECL ds >= 1.0.0)

Ds\Set::reverse Reverses the set in-place

˵��

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

Reverses the set in-place.

����

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

����ֵ

û�з���ֵ��

����

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

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

print_r($set);
?>

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

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