56.com视频采集接口程序(PHP)

2019-04-11 00:54:56王振洲

                            $c++;

                            for($i = $top['where']; $i <= $c; $i++)
                                $chrs = substr_replace($chrs, ' ', $i, 1);

                            //print("Found end of comment at {$c}: ".substr($chrs, $top['where'], (1 + $c - $top['where']))."n");

                        }

                    }

                    if(reset($stk) == HTML_AJAX_JSON_IN_ARR) {
                        return $arr;

                    } elseif(reset($stk) == HTML_AJAX_JSON_IN_OBJ) {
                        return $obj;

                    }
                }
        }
    }
}

if ( !function_exists("json_encode") || !function_exists("json_decode") ) {
    include_once "json.php";
    function json_encode($data) {
        $json = new HTML_AJAX_JSON();
        return $json->encode($data);
    }
    function json_decode($data) {
        $json = new HTML_AJAX_JSON();
        return $json->decode($data);
    }
相关文章 大家在看