Common operators and operation symbols in php are described in detail .? Php Tutorial * operator number (PHP) operator symbol ** by operator number function is divided into: * 1. arithmetic operator +-* % + -- * 2. string operator. concatenation
PHP operators 1. Arithmetic Operators
The PHP arithmetic operators have + (plus),-(minus), * (multiply),/(except),% (remainder).
PHP operator 2. Assignment operators
The PHP assignment operator has + = (assigns the left-hand value to the left),-=
What is a string operator? String operator introduction: a string operator is used to concatenate two strings to form a new string. We have introduced the arithmetic operators in PHP operators in the previous sections. I believe you have some
Copy CodeThe code is as follows:
/* OP symbol (PHP) Action symbol
*
* According to the function of the operation symbol is divided into:
* One, arithmetic operator +-*/% + +--
* Two, string operators. Join operators
* Third, assignment operator = +
Main introduction: JavaScript reinforcement tutorial-JavaScript operator JavaScript Arithmetic Operator this article is an official HTML5 training tutorial for H5EDU institutions, mainly about: JavaScript reinforcement tutorial-JavaScript
Original PHP Tutorial: Operators
I. arithmetic operators
+-*/% + + --
II. string operators.
III. assignment operators
= + =-= * =/= % =. =
IV. Comparison operators
><>====! = Or <>! =
5. logical operators
& Or and | or! Or not
VI. bitwise operators
&
Arithmetic operators
Operator name Result
$a + $b addition $a and $b and
$a-the difference between $b subtraction $a and $b
$a * $b multiplication $a and the product of $b
$a/$b division $a divided by the quotient of the $b
$a% $b modulo $a divided
Seemingly simple things, in practical use, is still very interesting
arithmetic operatorsOperator name Result
$a + $b addition $a and $b and
$a-the difference between $b subtraction $a and $b
$a * $b multiplication $a and the product of $b
$a/$b
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
In php, operators are the most basic knowledge point in our program development. next I will introduce some common usage of php operators in PHP. PHP operators include: 1. arithmetic operators 2. value assignment operator 3. comparison... in php,
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.