0x00 题目
<?php
show_source(__FILE__);
class home{
//私有变量
private $method;
private $args;
//构造函数
//当对象被创建后自动调用的第一个方法。
function __construct($method, $args) {
$this->method = $method;
$this->args = $args;
}
//析构函数
//该函数会在类的一个对象被删除时自动调用。
function __destruct(){
if (in_array($this->method, array("ping"))) {
//调用回调函数,并把一个数组参数作为回调函数的参数
call_user_func_array(array($this