In php, operators are the most basic knowledge point in our program development. next I will introduce you to some common usage of php operators in PHP.
In php, operators are the most basic knowledge point in our program development. next I will
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,
Increment decrement operator
Before increment ++++ $a $ A increments by 1 and then returns $ A
After increment + + + $a first return $ A, then $ A since 1
Before decrement----$a $ A self minus 1 and then return $ A
After decrement--$a--returns $ A,
PHP8: PHP operators This chapter describes the PHP operators.
The operator problem exists in every language, because we are familiar with one or more programming languages, so we just need to know about it.
To sum up.
There are many PHP operators,
1 definitions
An operator is something that can produce another value (and thus the entire structure as an expression) by giving one or more of the values (in programming jargon, expressions).
Operators can be grouped by their ability to accept
PHP operator 1. Arithmetic Operator
PHP Arithmetic Operators include + (plus),-(minus), * (multiplication),/(Division), and % (remainder ).
PHP operator 2. Value assignment operator
PHP assignment operators include + = (assign the value on the left
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.