Exemplo n.º 1
0
 /**
  * Pulls an item from the collection.
  *
  * @param  mixed  $key
  * @param  mixed  $default
  * @return mixed
  */
 public function pull($key, $default = null)
 {
     return Arr::pull($this->items, $key, $default);
 }
Exemplo n.º 2
0
 /**
  * Get a value from the array, and remove it.
  *
  * @param  array   $array
  * @param  string  $key
  * @param  mixed   $default
  * @return mixed
  */
 function array_pull(&$array, $key, $default = null)
 {
     return Arr::pull($array, $key, $default);
 }