This program saved my life tonight: phpCodeBeautifier. It’s amazing how much more readable properly indented code is.