新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

phptrycatch异常处理结构

try{
   // if(!empty($UserCode)){
   $url= '';
   $client=new\SoapClient($url);
   $userLogin=new\stdClass();

   $userLogin->UserCode=$UserCode;
   $userLogin->ExpirDate=2;

   $loginResponse=$client->__call("GetToken",array(
       $userLogin
   ));
   $token=$loginResponse->GetTokenResult;
}catch(\Exception$e) {  //千万要注意这里的 \  很重要!!!否则不执行这里来
   $token='';
}

网站题目:phptrycatch异常处理结构
路径分享:http://www.wjwzjz.com/article/ppsiej.html
在线咨询
服务热线
服务热线:028-86922220
TOP