src/Helper/ArrayHelper.php
public static function select($arr, $includedKeys)
    {
        $ret = [];
        foreach ($includedKeys as $key) {
            if (array_key_exists($key, $arr)) {
                $ret[$key] = $arr[$key];
            }
        }
        return $ret;
    }
public static function select($arr, $includedKeys)
    {
        $ret = [];
        foreach ($includedKeys as $key) {
            if (array_key_exists($key, $arr)) {
                $ret[$key] = $arr[$key];
            }
        }
        return $ret;
    }
public static function select ( $ arr , $ includedKeys ) { $ ret = [ ] ; foreach ( $ includedKeys as $ key ) { if ( array_key_exists ( $ key , $ arr ) ) { $ ret [ $ key ] = $ arr [ $ key ] ; } } return $ ret ; }
Create array with given keys

@param array $array
@param array $includedKeys
@return array
Create array with given keys