摘要:
__construct() 构造函数传递参数,并影响对象。对象产生时,自动执行。 析构函数 __destruct() 对象销毁时自动执行。 class human{ public $name; public $age; public function __construct($name,$age){ 阅读全文
摘要:
class 类名 { 属性==变量赋值 方法==函数 } class PPP{ public $name='猪'; public function chi() { echo '每天吃十斤大米'; } } 把类转换成对象 new 类名(); 对象赋值给一变量 $a= new ppp(); $a就变成了 阅读全文
摘要:
查看MYSQL数据库中所有用户 mysql> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user; 查看数据库中具体某个用户的权限mysql> show grants for 'cac 阅读全文