Home > php教程 > php手册 > Interface calling, string interception processing.

Interface calling, string interception processing.

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-09-07 12:57:59
Original
975 people have browsed it

<span style="color: #000000;"> public function index(){
        $this->assign('title','index');
        /*平台公告*/
        $curl=new CurlController();
        $data=array(
                'CmdId'=>'NewsList',
                'Token'=>'',
                'PostDetails'=>json_encode(array(
                        'nid'=>'gonggao',
                        'page'=>1,
                        'listRows'=>'5',
                )));
        $re=$curl->SendCurl($data);
        if ($re['RespCode'] === '000'){
            $re=$re['AcctDetails'];
            foreach($re as $key=>$value){
                $re[$key]['publish']=substr($re[$key]['publish'],0,10);
                $re[$key]['name']=mb_substr($re[$key]['name'],0,17,'utf-8');
            }
            //var_dump($re);
            $this->assign('news',$re);
            $this->assign('nid',$nid);
            $this->assign('id',$id);
        }</span>
Copy after login

 

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template