摘要: "; $ball->color ="green"; $ball->weight =100; echo $ball->color . "/" . $ball->weight; echo "类:"; class human { //构造函数 必须是__construct function __construct($name="zhu") { $this->name =$name; ... 阅读全文
posted @ 2010-11-16 15:43 杯具的小北 阅读(136) 评论(0) 推荐(0) 编辑
摘要: PHP的变量1.必须是$开头2.区分大小写3.不能以数字开头(不算$)单行注释// ……多行注释/*……*/[代码]相关文件:http://files.cnblogs.com/xiaobei/php001.zip 阅读全文
posted @ 2010-11-16 14:00 杯具的小北 阅读(154) 评论(0) 推荐(0) 编辑