Separation problem of PHP and HTML code
For projects and applications that do not have very high performance requirements, we recommend not using the method of directly mixing PHP and HTML codes to write code, but using the method of separating PHP and HTML codes, that is, using templates. On the one hand, It is beneficial to make the logical structure of the program clearer, and it also helps to arrange the division of labor during the development process. It also provides more convenience for upgrading this version of the project page in the future.
For some special cases, such as applications with high performance requirements, the template method may not be used.