$a-$b subtraction remainder of $b subtracted from $a.? /FONT>
$a * $b multiplication Product of $a and $b.? /FONT>
$a/$b division dividend of $a and $b.? /FONT>
$a% $b modulus remainder of $a divided by $b.
where the division operator "/" returns an integer value (the result of integer division) if two operands are integers (or strings that are converted to integers). If any of the operands are floating-point numbers, floating-point operations are performed.
string operator
This place has only one real string operator: concatenate symbol ".".
$a = "Hello"; $b = $a. " World! ";
//Now $b = "Hello world!"
Assignment operator
the basic assignment operator is "=". You tend to think that it means "equals". Don't think like that, it really means that the left-hand operand gets the value of the right 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 things like this:
$a = ($b = 4) + 5;
//$a is equal to 9 now, and $b has been set to 4.
as a supplement to the assignment operator, there is also a combination operator for binary numbers and word Fu, which allows you to use the value of an assignment expression on the assignment. 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!" and just like $b = $b. "There!";
bit operator
The
bit operator allows you to fine manipulate each bit of data.
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.