PHP exit() 函数
PHP 教程
· 2019-01-27 12:56:25
实例
输出一条消息,并退出当前脚本:
<?php
$site = "http://www.w3cschool.cc/";
fopen($site,"r")
or exit("Unable to connect to $site");
?>
$site = "http://www.w3cschool.cc/";
fopen($site,"r")
or exit("Unable to connect to $site");
?>
定义和用法
exit() 函数输出一条消息,并退出当前脚本。
该函数是 die() 函数的别名。
语法
exit(message)
| 参数 | 描述 |
|---|---|
| message | 必需。规定在退出脚本之前写入的消息或状态号。状态号不会被写入输出。 |
技术细节
| 返回值: | 没有返回值。 |
|---|---|
| PHP 版本: | 4+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
具体数学(英文版第2版)
[美] Ronald L. Graham、Donald E. Knuth、Oren Patashnik / 机械工业出版社 / 2002-8 / 49.00元
This book introduces the mathematics that supports advanced computer Programming and the analysis of algorithms. The primary aim of its well-known authors is to provide a solid and relevant base of ma......一起来看看 《具体数学(英文版第2版)》 这本书的介绍吧!