CLASS_NOTIFY::halt_re PHP Method

halt_re() public method

返回结果 halt_re function.
public halt_re ( mixed $arr_re, $is_encode = false, $is_jsonp = false ) : void
$arr_re mixed
return void
    function halt_re($arr_re, $is_encode = false, $is_jsonp = false)
    {
        if ($is_encode) {
            $_str_return = fn_jsonEncode($arr_re, "encode");
        } else {
            $_str_return = json_encode($arr_re);
        }
        if ($is_jsonp) {
            $_str_return = $this->jsonp_callback . "(" . $_str_return . ")";
        }
        exit($_str_return);
        //输出错误信息
    }