Exploring PHP clarity and succinctness
While thinking about the creation of HTML it seems worth considering some general topics to do with programming. They have no bearing on the functioning of code, but are important for its understanding. Not least, for the person writing the code, who may well forget what it is all about between writing it and revisiting it for further development!
The reason for thinking about them at this point is that we want to keep code as simple as possible in view classes. But to some extent, it is a matter of personal taste to decide what counts as simple and what is complex. So the remarks here are inevitably personal opinions, and doubtless there will be many who disagree.
Much of this is not specific to PHP, although it is looked at in the context of developing software using PHP. Bearing that in mind, a first remark is to emphasize something that has been mentioned before, which is PHP's rich set of built-in functions. Not only are they a powerful and efficient...