?> But one thing to note is that characters outside of PHP tags will be divided into units of 400 characters during the lexical analysis process, for example:
Copy code
The code is as follows:
if(1) {
?> laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence laruence } ?>
In the above code, there are 531 characters outside the label (including spaces and carriage returns), which will be divided into two T_INLINE_HTML output.
Error suppressor
We know that in PHP, error suppressors can be used to silence error prompts, so what method is used?
In the process of syntax analysis, for:
Copy code
The code is as follows:
@include('file');
?> will insert two Oplines (operations) before and after the include statement. These two operations are performed separately:
Copy code
The code is as follows:
1. Save the current error_reporting value and set error_reporting(0); //Close error output
2. Restore the previously saved error_reporting value
In other words, the above code is actually similar to the following code:
Copy the code
The code is as follows:
$old = error_reporting(0);
include('file');
error_reporting($old); Also, a digression: "When should it be applied? What about error suppression?", my personal suggestion is that if this statement goes wrong and it has little impact on you, you don't care what the error is, and you won't arrange additional logic to handle this kind of error, then you can use Error suppression. Otherwise, please use additional logic to determine errors.
http://www.bkjia.com/PHPjc/323222.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/323222.htmlTechArticle
PHP provides an error suppressor '@', how does it prevent error output? I also When should I use it? This is a common question mentioned by some netizens in the past two days. Today...