On a special function related to a class of solutions of certain nonlinear wave equations