Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
think
Collection
shuffle
think\Collection::shuffle PHP Method
Collection Class Documentation
显示文件
Open project: top-think/framework
shuffle()
public
method
将数组打乱
public
shuffle
( ) :
static
return
static
public function shuffle() { $items = $this->items; shuffle($items); return new static($items); }
Collection
__construct
__toString
all
chunk
column
convertToArray
count
diff
each
filter
flip
getIterator
intersect
isEmpty
jsonSerialize
keys
make
merge
offsetExists
offsetGet
offsetSet
offsetUnset
pop
reduce
reverse
shift
shuffle
slice
sort
toArray
toJson
unshift