We generalize known constructions of A-hypergeometric functions. In particular, we show that the periods of middle dimension on affine or projective complex algebraic varieties are A-hypergeometric functions of the coefficients of polynomial equations of these varieties.