php 面向对象简单例子

<?php //改编码 header("content-type:text/html;charset=utf-8"); class Person{ //常量 只能用const定义,不能用define const COLOR='yello'; //静态变量变量 static $count=0; var $name; var $age; var $car; function drive(){ echo
相关文章
相关标签/搜索