What is an Operator in PHP ?

The basic function of an operator is to do something with the value of a variable. That “something” can be to assign a value, change a value, or compare two or more values. Assignment operator ( = ) to assign values to your variables. There are other types of assignment operators, as well as other types of operators in general.

Here are the main types of PHP operators:

Assignment operators : Assign values to variables. Can also add to or subtract from a variable’s current value.

Arithmetic operators : Addition, subtraction, division, and multiplication occur when these operators are used.

Comparison operators : Compare two values and return either true or false. You can then perform actions
based on the returned value.

Logical operators : Determine the status of conditions

About the author

Being the CEO and Founder of ClecoTech International, Mr. Ashish Prajapati is dedicated towards his aim of mentoring young startups into a full-fledged businesses. He is helping startups from America, Europe, India, and various other countries through proper guidance and the use of latest technologies to develop their innovation and ideas into definite realities.

Leave a Reply

Your email address will not be published.