Well if you are looking for a WYSIWYG program that writes the code for you, the closest thing I can think of that would do something like that is Dreamweaver. It has some built in features to write php for you but it really is not as good as writing your own code.