PHP supports an error control operator: @. Any error messages that may be generated by the expression are ignored until it is placed in a PHP expression.
If a custom error handler is set with Set_error_handler (), it will still be called, but this
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 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
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
First think about a question:
What will the following code display to the page?
The Code is as follows:
Die (123 ); ?>
For a while, I always thought that the page would display 123, but the practice result
PHP Database Insert data problem, die or die plug in, seek the guidance of the Great God
This post was last edited by Hipyaohop on 2013-06-28 10:12:39
jquery Code:
$ (". Detailtextable"). Click (function () {
$s _keshi=$ (". Cla_title"). attr ("alt")
Heavily used in PHP
dieOr
exit, are there any other drawbacks in terms of readability?
Reply content:
Is there a lot of use in PHP die or is exit there any other drawbacks in terms of readability?
I think die() / exit() mainly affect the
Often see this statement: $file = fopen ($filename, ' r ') or Die ("Sorry, unable to open: $filename");
Or is understood here, because the data type is not differentiated in PHP, so the $file can be either int or bool, so the statement does not
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.