Subject: PHP

Using Combined Assignment Operators

Create a variable $total = 50. Use combined assignment operators to:

  • Add 10 to $total
  • Subtract 5 from $total
  • Multiply $total by 2
  • Divide $total by 4

Select file or drag and drop

PNG, JPG, SVG

Preview