In quantum information science, quantum cloning theory is a basic one that provides an absolute security of quantum cryptography. The explicit transformation of the optimal 1→M=d+1 phase-covariant quantum cloning in d dimensions was derived and then this kind of cloning machine to the 1→M=kd+1 (for integer k) case was generized and the explicit transformation was obtained. By exploiting the formulation of the nonoptimal 2→M=2k+1 phase-covariant quantum cloning in 2 dimensions, the optimal cloning transformation was derived. The copy fidelities of the two kinds of cloning machines are coincident with the theoretical values found.