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
This article briefly analyzes the differences between the exit and die that are often used in PHP, and a friend who needs to see it.First, consider a question:What does the following code show to the page?There was a time I always thought the page
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
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
Die: Stop when you encounter an errorDie (): Stop program run, output contentExit: Is the stop program running, is directly stopped, and does not run subsequent code, does not output contentExit (): content can be displayed.Exit (0): Run the program
: 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
Let's talk about PHP's die and exit. Today, some friends say there is a difference between exit and die. Do I say that die is not the alias of exit? To prove my point of view, I flipped through the PHP source code. in zend_language_scanner.l, it is
PHP + jQuery + Ajax for user login and exit
PHP + jQuery + Ajax for user login and exit
This article uses Ajax to enhance the user experience by refreshing new logon and logout. If the user is logged on, the user-related logon information is
This article provides a detailed analysis of the PHP bounce loop method and the differences between continue, break, and exit. For more information, see
This article provides a detailed analysis of the PHP bounce loop method and the differences
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.