A point has rectangular coordinates $(12, -4, 3)$ and spherical coordinates $(\rho, \theta, \phi).$  Find $\cos \phi.$
We have that $\rho = \sqrt{12^2 + (-4)^2 + 3^2} = 13.$  Since $z = \rho \cos \phi,$
\[\cos \phi = \frac{z}{\rho} = \boxed{\frac{3}{13}}.\]