摘要:
foreachAttribute NameTypeRequiredDefaultDescriptionfromarrayYesn/aThe array you are looping throughitemstringYesn/aThe name of the variable that is the current elementkeystringNon/aThe name of the var... 阅读全文
posted @ 2010-04-06 22:35
浪淘沙(Jeff.Liu)
阅读(1017)
评论(0)
推荐(0)
摘要:
这是我第一次写 博文。我想说的是php创建一个类的实例的时候,构造方法调用的问题。php中不像java一样,创建一个class的实例的时候 会自动的首先调用父类(超类)的构造方法,以确保所有的属性都可以被正确的初始化。php 不会在本类的构造方法中再自动的调用父类的构造方法。如果真的需要调用父类的构造方法,可以手动的调用parent::__construct($params...); cla... 阅读全文
posted @ 2010-04-06 13:21
浪淘沙(Jeff.Liu)
阅读(4471)
评论(0)
推荐(0)