<?php header("content-type:text/html;charset=utf-8");class People{ public $name=""; public $age="0"; function _construct($name,$age){ $this->name=$name; $this->age=$age; } function info() { return $this->age ; }}echo '<pre>';$people=new People('liu','12');print_r($people->info());echo '</pre>';?>
1 回答
- 1 回答
- 0 关注
- 1216 浏览
添加回答
举报
0/150
提交
取消