static function getall($array, $keys) { $result = array(); foreach ($keys as $key) { $result[$key] = $array[$key]; } return $result; }