The basic assignment operator is "=". You tend to think that it means "equals". Don't think so, what it really means is that the left-hand operand gets the value of the right-hand expression.
The meaning of an assignment expression is the assignment of a value. In other words, the value of "$a = 3" is 3. This allows you to do something like this:
$a = ($b = 4) + 5;
$a is equal to 9 now, and $b have been set to 4.
As a complement to the assignment operator, there is also a combination operator for binary numbers and word nginx that allows you to take the value of an assigned expression on the assignment side. For example:
$a = 3;
$a + = 5; Sets $a to 8, as if we had said: $a = $a + 5;
$b = "Hello";
$b. = "there!"; Sets $b to "Hello there!", just like $b = $b. "There!";
http://www.bkjia.com/PHPjc/531970.html www.bkjia.com true http://www.bkjia.com/PHPjc/531970.html techarticle The basic assignment operator is "=". You tend to think that it means "equals". Don't think so, what it really means is that the operand on the left gets the right expression ...