Pages

21 thg 12, 2010

[PHP] Create Instance, Call Method by Name

class ABC {
public function method() {
echo "Call Method";
}
}
$c = "ABC";
$i = new $c();
$m = "method";
$i->
$m();

0 nhận xét:

Đăng nhận xét

Powered By Blogger