Hello.. Friends, Today we are going to study about Operators & different different operators
echo $x + $y
so here operator is a symbol that manipulates one or more values, & expressions in php is anything that evaluates to a value this can be any combination of values,variables,operators and functions
The values and variables that are used with an operator are known as operands
Types of Operators :
Operators :
we study about variables how to set variables to a particular value, assigning value to a variable etc like as variables using an operators we can retrieve operators to produce a new value for exampleecho $x + $y
so here operator is a symbol that manipulates one or more values, & expressions in php is anything that evaluates to a value this can be any combination of values,variables,operators and functions
The values and variables that are used with an operator are known as operands
Types of Operators :
- Arithmetic : Perform common arithmetical operations,such as addition and subtraction
- Assignment : Assigning values to variables
- Bitwise : Perform operations on individual bits in an integer
- Comparison : Compare values in Boolean fashion ( true or false is returned )
- Error Control : Affect error handling
- Execution : Cause execution of commands as through they were shell commands
- Incringementing / Decrementing : Increment or decrements a variable's value
- Logical : Boolean operators such as and, or and not that can be used to include or exclude
- String : Concatenates (join together) strings ( there's only one string operator )
- Array : Perform operations on arrays
Array operator
Arithmetic Operator
Assignment Operator
Comparison Operator
Increment/Decrement Operator
String Operator
0 comments