Account
Categories

Assignment Operator


As the name suggests, the assignment operator is used to assign a value to a variable. The process of inputting a value into a variable is called the assignment operator.

Some of the assignment operators in PHP include:

  • Simple assignment Operator (=)
  • Add AND assign Operator (+=)
  • Subtract AND assign Operator (-=)
  • Multiply AND assign Operator (*=)
  • Divide AND assign Operator (/=)
  • Modulus AND assign Operator (%=)
  • Exponent AND assign Operator (**=)