arrayOnly() public static method

Get a subset of the items from the given array From Illuminate/support helper functions
public static arrayOnly ( array $array, array | string $keys ) : array
$array array
$keys array | string
return array
Example #1
0
 /**
  * Get a subset of the items from the given array
  * From Illuminate/support helper functions
  *
  * @param  array         $array
  * @param  array|string  $keys
  *
  * @return array
  */
 function array_only($array, $keys)
 {
     return Utils::arrayOnly($array, $keys);
 }