static function filterIn($arr,$keys)
    {
        $keys = explode(",", $keys);
        $result = array();
        foreach ($arr as $key=>$value) {
            if (in_array($key, $keys)) {
                $result[$key] = $value;
            }
        }
        return $result;
    }
static function filterIn($arr,$keys)
    {
        $keys = explode(",", $keys);
        $result = array();
        foreach ($arr as $key=>$value) {
            if (in_array($key, $keys)) {
                $result[$key] = $value;
            }
        }
        return $result;
    }
static function filterIn ( $ arr , $ keys ) { $ keys = explode ( "," , $ keys ) ; $ result = array ( ) ; foreach ( $ arr as $ key => $ value ) { if ( in_array ( $ key , $ keys ) ) { $ result [ $ key ] = $ value ; } } return $ result ; }
Get only some of the keys from an array

@param array  $arr  The array
@param string $keys List of keys in string and separate with comma(,)

@return array The filtered array with only specified keys
Get only some of the keys from an array