Home  >  Article  >  Backend Development  >  非常实用的php弹出错误警告函数扩展性强_PHP

非常实用的php弹出错误警告函数扩展性强_PHP

WBOY
WBOYOriginal
2016-06-01 11:56:34910browse

分享一个非常实用,本人一直在用的利用php弹出警告的函数,整理到自己的代码库中去在遇到错误的地方可用到此函数,扩展性强,完整代码如下
复制代码 代码如下:
//********弹出alert框并跳转到指定页面******//
function alert($message,$url='',$isAlert=true,$title='提示'){
echo '

',$title,'';
echo '';
echo '';
exit();
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn