Horde_Imap_Client_Ids::reverse PHP 메소드

reverse() 공개 메소드

Reverses the order of the IDs.
public reverse ( )
    public function reverse()
    {
        if (is_array($this->_ids)) {
            $this->_ids = array_reverse($this->_ids);
        }
    }

Usage Example

예제 #1
0
파일: IdsTest.php 프로젝트: horde/horde
 public function testReverse()
 {
     $ids = new Horde_Imap_Client_Ids(array(1, 3, 5));
     $ids->reverse();
     $this->assertEquals(array(5, 3, 1), $ids->ids);
 }