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

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.

主站蜘蛛池模板: 江北区| 钟祥市| 旬阳县| 滨海县| 建德市| 高平市| 新巴尔虎左旗| 忻州市| 武威市| 丹江口市| 海安县| 库尔勒市| 九龙坡区| 哈巴河县| 溧水县| 怀柔区| 柳江县| 白银市| 新宁县| 乐东| 绿春县| 泌阳县| 吉木萨尔县| 池州市| 开阳县| 香港| 永和县| 七台河市| 哈尔滨市| 汉寿县| 太保市| 儋州市| 正定县| 波密县| 珠海市| 龙海市| 邳州市| 南投县| 安庆市| 左权县| 邻水|