Die (' 1 ') Die () and exit () are all abort script execution functions; the two names of Exit and die refer to the same function, and die () is the alias of the exit () function. The function accepts only one parameter, either a value returned by a
Difference between exit () and die () in PHP
This article briefly analyzes the differences between exit and die commonly used in php. If you need them, you can take a look.
First, consider the following question:
What will the following code display
PHP in the real difference between die () and exit () What is the reason, we Baidu found die is to exit and release memory, Exit is to quit but not to release memory, then really is this, the need for friends can refer to the next
Online search for
Online search die and exit two functions, most of the "standard answer" is that die is to exit and release memory, exit is exited but does not release memory. This explanation is clearly wrong, as the PHP manual has said, "Die-equivalent to exit."
Online search die and exit two functions of the difference, most of the "standard answer" is that die is to exit and release memory, exit is exited but does not release memory.
This explanation is clearly wrong, as the PHP manual has said,
This article briefly analyzes the use of PHP in the exit and die differences, there is a need for friends to see.
First, consider a question:
What does the following code show to the page?
There was a time when I thought the page would show 123
: This article mainly introduces the differences between die and exit in php. For more information about PHP tutorials, see. First think about a question:
What will the following code display to the page?
1
2
This article mainly introduces how to use Linux commands to execute and run PHP scripts. The syntax in the PHP language is very similar to that in the language of Perl, which has some PHP features of CJava and runtime, the current stable and latest
: This article mainly introduces the differences between exit and die in PHP. For more information about PHP tutorials, see. First think about a question:
What will the following code display to the page?
For a while, I always thought that the
How to use and run PHP scripts from the Linux command line, the Linux command line PHP script
The following is an illustrated way to share with you under the Linux command to use and run PHP scripts.
PHP is an open source server-side scripting
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.