<?php
class db {
private $db;
const CONS=
const OVER=
public function __construct() {
$this
$this
}
public function getDriver() {
$this
}
private function show($param) {
echo $param
}
public function __destruct() {
$this
}
}
<?php
require
$db=new db();
$db
/*
will echo:
constroctor start
mysql
Class now over
*/ 待續
From:http://tw.wingwit.com/Article/program/PHP/201311/20807.html