I just learned php and don't understand what this code means
Source: Internet
Author: User
I just learned php. what does this code mean? These two pieces of code should be judged. It should be placed in the judgment statement, but the author of the code does not. what does it mean? In_array ($ in, $ file) ===false & amp; exit ;! Ini_get ('safe _ mode' I just learned php and don't understand what this code means?
These two pieces of code should be judged. It should be placed in the judgment statement, but the author of the code does not. what does it mean?
------ Solution --------------------
In_array ($ in, $ file) ===false & exit;
If & the preceding condition is met, the following expression is executed, which is equivalent
If (in_array ($ in, $ file) === false ){
Exit;
}
------ Solution --------------------
Upstairs.
! Ini_get ('safe _ mode') & set_time_limit (0 );
Check whether the security module is enabled in the PHP configuration file and whether the script running time is set to infinite (unlimited time)
------ Solution --------------------
In fact, a more reasonable explanation is:
Expression 1 & expression 2
If expression 1 returns true, expression 2 is executed. if expression 2 returns true, true is returned.
When expression 1 returns false, expression 2 does not need to be executed.
If (expression 1 & expression 2) so that you can understand its process
| Relationship of "yes", that is, whether or not the two values are checked to be true or not. if either of them is true, true is returned.
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.