摘要: <?php class DBDA{ public $host = "localhost"; public $uid = "root"; public $pwd = "123"; public $dbname = "xiangmu"; public function Query($sql,$type= 阅读全文
posted @ 2017-02-26 10:52 终极用户 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 面向对象涉及到的比较多,大概总结整理一下php的属性、对象,以及访问方式$this $parent self 的使用场景。 1. PHP类属性定义和访问方式: 1 <?php 2 class testClass { 3 const tConst = 1; 4 public $tVar = 2; // 阅读全文
posted @ 2017-02-26 10:37 终极用户 阅读(209) 评论(0) 推荐(0) 编辑