php之创建对象的基本形式

classp_obj{public$val;
publicfunctionfunc(){echo”new obj”;
}
}$obj_one = new p_obj();$obj = “p_obj”;
$obj_two = new$obj();$obj_three = newself;
//self指代类本身,这行代码只能在类内部使用//通过对象创建对象$obj_four = new$obj_one;

‘).addclass(‘pre-numbering’).hide();
$(this).addclass(‘has-numbering’).parent().append($numbering);
for (i = 1; i

Posted in 未分类