Core/src/ArrayTrait.php
private function pluckArray(array $keys, &$arr)
    {
        $values = [];

        foreach ($keys as $key) {
            if (array_key_exists($key, $arr)) {
                $values[$key] = $this->pluck($key, $arr, false);
            }
        }

        return $values;
    }
private function pluckArray(array $keys, &$arr)
    {
        $values = [];

        foreach ($keys as $key) {
            if (array_key_exists($key, $arr)) {
                $values[$key] = $this->pluck($key, $arr, false);
            }
        }

        return $values;
    }
private function pluckArray ( array $ keys , & $ arr ) { $ values = [ ] ; foreach ( $ keys as $ key ) { if ( array_key_exists ( $ key , $ arr ) ) { $ values [ $ key ] = $ this -> pluck ( $ key , $ arr , false ) ; } } return $ values ; }
Pluck a subset of an array.

@param string $keys
@param array $arr
@return array
Pluck a subset of an array .