34,333
edits
Changes
→PHP Assignment Operators
We breifly covered the basic PHP assignment operator in the [[An Introduction to PHP Variables]] chapter. We will now look at this and other assignment operators in more detail.
The ''assignment operator'' is used to assign a value to a variable and is represented by the equals (=) sign. The assignment operator can also be combined with arithmetic operators to combine an assignment with a mathemtatical operation (for example to multiple one value by another and assigning the result to the variable)and also to perform string concatenations.
The following table lists the seven assignment operators available in PHP, together with descriptions and examples of their use: