Home  >  Article  >  Database  >  Detailed introduction to PHP operators and operators

Detailed introduction to PHP operators and operators

小云云
小云云Original
2018-03-09 11:13:091739browse

There are also many various PHP operators and operators in php. This article mainly shares with you a detailed introduction to PHP operators and operators. I hope it can help you.

This article introduces the operators and operators commonly used in PHP:

(1) Arithmetic operators:                                                                                                                                                                                            String operator: . . (read: dot operator, string concatenation operator)

(3) Assignment operator:   =   +=   -=   /=   %=   .= (.= is read as: Dot equals, connects a string to itself)

(4) Comparison operator:                                                                             , | or or ! not & |

(6) bit operator: | Enter)

(7) Other operators: ? : (ternary form of if-else) @ (error control character, even if an error occurs, ignore the error message and continue to execute the following code) => (k=>v of the array) ->(Object ->Member) ::(Class::Static member) &(Get address) $(Use before variable)

Note: If there is no special explanation, it means that it has the same function as other languages.

Related recommendations:

php operator collection

Simple questions about php operator priority

Examples of PHP operators

The above is the detailed content of Detailed introduction to PHP operators and operators. 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