Locked lesson.
About this lesson
How to assign things in PHP.
Exercise files
Download this lesson’s related exercise files.
Assignment Operators.docx58.8 KB Assignment Operators - Solution.docx
59 KB
Quick reference
Assignment Operators
Assignment operators assign things to other things.
When to use
You'll often use them with variables, to assign data to a variable.
Instructions
Assignment operators assign. Here's the main list:
=
+=
-=
*=
/=
%=
Hints & tips
- Assignment operators assign
- Equal to = is the most used assignment operator
Lesson notes are only available for subscribers.