2012年12月7日

只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-12-07 22:34 php1994 阅读(3) 评论(0) 推荐(0)
摘要: 一个类的实例,在类外调用类的私有属性失败的例子:<?php class student { private $no; private $name; private $gender; private $age; private function show_age(){ echo"name is $this->name.<br />"; } function ask_age(){ $this->show_age(); } function s... 阅读全文
posted @ 2012-12-07 22:02 php1994 阅读(175) 评论(0) 推荐(0)

导航