Mathematische Operationen mit Zahlen in PHP

Addition:

php<?php
  $a = 1 + 2;
  echo $a; // gibt 3 aus
?>

Subtraktion:

php<?php
  $b = 3 - 2;
  echo $b; // gibt 1 aus
?>

Multiplikation:

php<?php
  $c = 3 * 2;
  echo $c; // gibt 6 aus
?>

Division:

php<?php
  $d = 4 / 2;
  echo $d; // gibt 2 aus
?>
Задание 1

Erstellen Sie eine Variable $a. Schreiben Sie in sie die Summe der Zahlen 1, 2 und 3. Verwenden Sie den Befehl echo, um den Inhalt der Variable $a auf dem Bildschirm auszugeben.