예제 #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);
 }