mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
Merge branch 'master' of https://git.topthink.com/topteam/framework
This commit is contained in:
@@ -99,6 +99,16 @@ class Collection implements ArrayAccess, Countable, IteratorAggregate, JsonSeria
|
|||||||
return new static(array_keys($this->items));
|
return new static(array_keys($this->items));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 返回数组中所有的值组成的新 Collection 实例
|
||||||
|
* @access public
|
||||||
|
* @return static
|
||||||
|
*/
|
||||||
|
public function values()
|
||||||
|
{
|
||||||
|
return new static(array_values($this->items));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 合并数组并返回一个新的 Collection 实例
|
* 合并数组并返回一个新的 Collection 实例
|
||||||
* @access public
|
* @access public
|
||||||
|
|||||||
Reference in New Issue
Block a user