Home >Backend Development >PHP Tutorial >Some minor problems with photoshop cs2 v9.0 green Chinese version php
I have sorted out 2 for everyone to learn
1. The difference between three equal signs and two equal signs "===" VS "=="
For example, if your function will return these situations:
1. Greater than 0 Number
2, number less than 0
3, number equal to 0 (that is, 0)
4, False (when failure)
If you want to capture the failure situation at this time, you must use ===, not Use ==
because == will not only match the 4th case, but also the 3rd case, because 0 is also false!
Here comes
$a='2';//Character type 2
$b=2;//Numeric type 2
$a==$b, that’s right, both are 2
$a===$ b is incorrect because $a is character type and $b is numeric type. Although the value is the same, the type is different.
2. What do the three angle brackets "<<<" in php do?
Copy the code The code is as follows:
$somevar = <<
someword;
The above introduces some minor problems of photoshop cs2 v9.0 green Chinese version PHP, including the content of photoshop cs2 v9.0 green Chinese version. I hope it will be helpful to friends who are interested in PHP tutorials.