php把字符串做为代码执行的函数eval

    extract($sms_param, EXTR_PREFIX_SAME, "wddx");
        $mtm             = MessageTemplateModel::where('msg_template_code', $this->sms_template_code)->first();
        eval('eval("\$data[\'content\'] = \"$mtm->content\";");');

你可能感兴趣的:(php)