Home >Backend Development >PHP Tutorial >Some minor problems with photoshop cs2 v9.0 green Chinese version php

Some minor problems with photoshop cs2 v9.0 green Chinese version php

WBOY
WBOYOriginal
2016-07-29 08:43:06926browse

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 = <<put your code or words here
someword;


This is the code snippet. One benefit of using code snippets in PHP is that when you need to output a piece of code (which can include multiple lines), the code snippet can maintain a more logical form. Often used to insert HTML code.
Note that someword is any character and represents a mark. <<It can be used to include both single quotes and double quotes in assignments. Well, there are many such in pw

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn