When did phalanxes become obsolete? Why?

by Mowfling
Iphikrates

You might be interested in my earlier answer here and also this one here!