PHP Operators: Assignment OperatorsTag: operator, Assignment Operators Category: PHP Basicpost: 08 Mar 2008 read: 574 PHP Operators Step By Step Tutorial - Part 3: Assignment operator (=) is operator where the left operand get value from the right operand. It can also be interpreted as giving operator a value to variable. Example:
The assignment process can also be conducted with the right operand which is in the form of expression.
Assignment operator can also be conducted with the combination of aritmatika operator and string operator which enabling you to use the expression and the result becomes its value.
Pay attention that the assignment can copy the original variable into new variable (assignment by value).
PHP have supported assignment by reference. Assignment by reference means that some variable which relates in one of same location (is same variable content)
Example:
The result of executing assignment operator.php:
|
| | Give Your Opinion | Recommend |
|

