Home  >  Article  >  Backend Development  >  what does php operator mean

what does php operator mean

藏色散人
藏色散人Original
2022-01-04 09:53:532202browse

PHP operators refer to things that can produce another value by giving one or more values; PHP operators include arithmetic operators, assignment operators, increment\decrement operators, comparison operators , logical operators, array operators, ternary operators, combinatorial comparison operators.

what does php operator mean

#The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.

What do php operators mean?

An operator is something that takes one or more given values ​​(an expression, in programming jargon) and produces another value (thus the entire structure becomes an expression).

Operators can be grouped according to how many values ​​they can accept. Unary operators can only accept one value, such as ! (logical negation operator) or (increment operator). Binary operators accept two values, such as the familiar arithmetic operators - (add) and - (subtract), which are the majority of PHP operators. Finally, there is the only ternary operator ? :, which accepts three values; it is often simply called the "ternary operator" (although it might be more appropriate to call it a conditional operator).

php operators include arithmetic operators, assignment operators, increment\decrement operators, comparison operators, logical operators, array operators, ternary operators, and combined comparison operators.

See the Operators chapter for a complete list of PHP operators.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of what does php operator mean. For more information, please follow other related articles on the PHP Chinese website!

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