打印一条消息并退出当前脚本:
<?php
$site = "https://www.91xjr.com/";
fopen($site,"r")
or exit("Unable to connect to $site");
?>
exit() 函数打印一条消息并终止当前脚本。
exit(
message)
Parameter | Description |
---|---|
message | Required. A message or status number to print before terminating the script. A status number will not be written to the output, just used as the exit status. |
返回值: | 没有什么 |
---|---|
PHP 版本: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!