What operators does PHP have?
This article is about what operators PHP has. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Let's start with PHP, where there is an unrecognized war every day in the world of programming. It is a war between ordinary people and computer scientists.
It is a war between people who want to write code in a simple, flexible, and humane way and people who want to write code in a clean, clear, and correct way. It's a war between PHP and C++/Java. " The future of PHP is very bright, and currently major platform vendors such as MicroSoft, IBM, Oracle, MySQL, Intel and RedHat all recognize and support PHP. Zend has teamed up with several leading companies and members of the PHP community to launch a new collaborative project Collaboration Project, which aims to take PHP to a new level by creating an enterprise-level, standardized Web application development framework and development environment. The main contents of the project are Zend PHP Framework and Eclipse PHP IDE. Let's introduce the knowledge of the PHP operator in detail.
It is copied directly, only to facilitate query.
Assignment Operators
Allocator of PHP operator (Assignment Operators)
Operator
Symbol Example
Case Is The Same As
Equivalent to
=
Xfanty
Xfanty
+ =
X _ ray _ y
X=x+y
-=
XWhitty
X=x-y
* =
X _ ray _ y
X=x*y
/ =
X _
X=x/y
% =
X% roomy
X=x%y
Comparison Operators
Comparator (Comparison Operators)
Operator
Symbol Description
Specific description of Example
Case = = is equal to
Equals 5 percent eight returns falsehood eight is not equal
Not equal to return true > is greater than for 5 minutes 8
Return false=8 if it is greater than 5 > 8 and return false