Periodic wave solutions to the dispersive long-wave equations are obtained by using the F-expansionmethod, which can be thought of as a generalization of the Jacobi elliptic function method. In the limit case, solitarywave solutions are obtained as well.