编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 deque reverses the deque in placephp map reverses the map in placephp sequence reverses the sequence in placephp set determines if the set contains all valuesphp set reverses the set in placephp set sorts the set in placephp vector reverses the vector in placephp openal 函数 set a listener propertyphp pdf 函数 set duration between pages deprecated php pdf 函数 set numerical parameterphp pdf 函数 set fill rgb color values deprecated php mongocursor returns the current result s id or its index within the result setphp mongodb driver server checks if this server is a hidden member of a replica setphp swoole http client set the http request cookies.php ui controls grid set paddingphp ui controls multilineentry set textphp ui controls spin set valuephp ui draw stroke set miter limitphp ui draw text layout set widthphp ui menuitem set checked
关注编程学问公众号
编程学问网 湘ICP备20001732号