官术网_书友最值得收藏!

Summary

Building software that makes full use of PHP5 involves creating numerous classes that model aspects of the problem being solved. It is usually convenient to keep each one in its own file. But this makes it difficult to keep track of whether a class is already loaded.

The neatest PHP5 solution to the problem is to implement a generalized autoload mechanism for classes. This chapter has shown that it need not be especially complex, even when built to be very flexible, and to handle dynamic additions to the stock of classes.

In the next chapter, another important general area is discussed—the provision of services that will help with the use of a database.

主站蜘蛛池模板: 南投市| 城步| 洛扎县| 乐山市| 石棉县| 哈巴河县| 茌平县| 兴海县| 安康市| 江孜县| 瓮安县| 古蔺县| 福贡县| 理塘县| 北碚区| 阳山县| 罗源县| 胶南市| 乌兰察布市| 海盐县| 津南区| 九龙坡区| 西丰县| 和田县| 临颍县| 西宁市| 金湖县| 潼南县| 景宁| 祁连县| 三河市| 西峡县| 安康市| 婺源县| 永仁县| 井陉县| 太和县| 襄城县| 利川市| 通山县| 舞钢市|