Turadg Aleahmad has written a PHP major mode for Emacs. I don’t know if it’s any good. There’s also a Cold Fusion mode, which I also haven’t tested.