php or die用法

当前面的函数运行出错时,终止并输入提示。
常见的用法如:
mysql_connect('locahost','root','') or die('数据库连接失败');

原文地址:https://www.cnblogs.com/wuyou/p/3383561.html