Assignment Operators
Assignment operators are used to set a variable equal to a
value or set a variable to another variable's
value. Such an assignment of value is done with the
"=", or equal character.
Example:
• $my_var = 4;
• $another_var =
$my_var
Now both $my_var and $another_var contain the value 4.
Assignments can also be used in conjunction
with arithmetic operators.
0 comments:
Post a Comment