In this paper, we present the exact solutions of the partial differential equations in different dimensions with variable coefficients by using the homotopy perturbation method. The feature of this method is its flexibility and ability to solve parabolic-like equations and hyperbolic-like equations without the calculation of complicated Adomian polynomials or unrealistic nonlinear assumptions. ...