From the beginning of learning PHP, our code appeared in a mixed state of HTML, and then slowly became independent. Later, the PHP code was separated into different scripts, loading and calling each other. So what exactly is the logic in this? In fact, from the perspective of realizing business functions, any mode is acceptable. However, project development often involves team collaboration, which requires teamwork and the maintainability of later code. This leads to the practice of classifying code and dividing it into files.