  Linear codes with few weights have applications in authentication codes,
secrete sharing schemes, association schemes, consumer electronics and data
storage system. In this paper, several classes of linear codes with two or
three weights are obtained from some functions with low Walsh spectrum in odd
characteristic. Numerical results show that some of the linear codes obtained
are optimal or almost optimal in the sense that they meet certain bounds on
linear codes.
