getJsSign('https://a.com/test.php'); var_export($result); } catch (Exception $e) { // 出错啦,处理下吧 echo $e->getMessage() . PHP_EOL; }