摘要:
<?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
终极用户
阅读(376)
评论(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
终极用户
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号