编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Ds\Set::remove
  • Ds\Set::reversed »
  • PHP Manual
  • Set
  • Reverses the set in-place

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
)
相关文章
php arrayiterator set behaviour flagsphp deque reverses the deque in placephp map reverses the map in placephp sequence reverses the sequence in placephp set reverses the set in placephp set sorts the set in placephp vector reverses the vector in placephp frontbase 函数 set the lob retrieve mode for a frontbase result setphp maxdb 函数 别名 maxdb character set namephp ming 函数 set the global scaling factorphp msession 函数 set/get session timeoutphp harudoc set owner and user passwords for the documentphp harupage set height of the pagephp harupage set word spacing for the pagephp imagick average a set of imagesphp intlbreakiterator set the iterator position to index beyond the last characterphp intlcalendar set the calendar time in milliseconds since the epochphp intldateformatter set the leniency of the parserphp seaslog manually set seaslog request variablephp sphinxclient set matches sorting mode
关注编程学问公众号
编程学问网 湘ICP备20001732号