摘要:
<?php /* class A{ public $n=3; } } class B extends A{ public $n2="hello"; } //一个类只能继承一个父类,如果要想继承多个类就是用多层继承来实现 class C extends B{ } $c =new C(); echo $c->n2; */ class A{ public $n=3; public function __... 阅读全文
posted @ 2013-03-25 10:24 Step at a time 阅读(325) 评论(0) 推荐(0) 编辑