php中的die和exit之间的区别 [英] difference between die and exit in php
本文介绍了php中的die和exit之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想知道php中的退出和死亡功能之间的确切区别。我在google上搜索了它,但没有找到满意的答案。我发现两者都是彼此的别名,但我猜必须有一些区别,所以请帮帮我。
谢谢...
hello everybody,
I want to know the exact difference between exit and die function in php.I searched it out on google,but didn''t find satisfactory answer.I found both are alias of each other,but I guess there must be some difference,so please help me out.
Thanks...
推荐答案
没有区别。简单:)
唯一值得注意的区别是这个双关语:
the only notable difference is this pun:
另请注意,如果die()是你的责任必要。
Also note that it is your responsibility to die() if necessary.
(参考)
这实际上是w3schools.org的PHP测验中的一个问题。
我记得错过了这个问题,这就是我永远记得这个的原因。
Dan
This is actually a question in w3schools.org''s PHP quiz.
I remember missing that question and that''s why I always remember this.
Dan
这篇关于php中的die和exit之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文