示例#1
0
 /**
  * Get an array with the values of a given key.
  *
  * @param  string  $value
  * @param  string  $key
  * @return static
  */
 public function pluck($value, $key = null)
 {
     return new static(Arr::pluck($this->items, $value, $key));
 }
示例#2
0
文件: helpers.php 项目: 453111208/bbc
 function array_column($array, $key)
 {
     return Arr::pluck($array, $key);
 }