Home>Article>Backend Development> What are the common operators in php

What are the common operators in php

(*-*)浩
(*-*)浩 Original
2019-09-06 10:15:02 9392browse

What are the common operators in php

Common operators in PHP are: arithmetic operators, assignment operators, comparison operators, logical operators, and array operators.

PHP Arithmetic Operators(Recommended Learning:PHP Video Tutorial)

Arithmetic operators are mainly used for Arithmetic operations, such as addition, subtraction, multiplication, and division;

What are the common operators in php

PHP Assignment operator

PHP The assignment operator is used to write values to variables.

The basic assignment operator in PHP is "=". This means that the right-hand assignment expression sets the value of the left-hand operand.

What are the common operators in php

PHP comparison operators

PHP comparison operators are used to compare two values (numbers or strings):

What are the common operators in php

PHP logical operators

Logical operators are mainly used to perform logical operations, such as: logical AND, logical OR, logical exclusive Or, logical negation, etc.;

What are the common operators in php

PHP array operator

PHP array operator is used to compare arrays:

What are the common operators in php

The above is the detailed content of What are the common operators in php. 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