As you said, photoelectrons can be emitted by atoms deep inside the metal, how come the work function only account for the energy needed for liberating an electron from the surface(not deep inside) of a metal?(It is from the answer)
Thank you for your help. It really helps me a lot.