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
相關文章
相關標籤/搜索