<?php
echo "<p>".basename($_SERVER['SCRIPT_FILENAME'])."</p>";
// definition der Variablen
$a = 12;
$b = 7;
$c = 10;
$resultat = '';
echo "a: " . $a . "<br>";
echo "b: " . $b . "<br>";
echo "c: " . $c . "<br>";
echo "resultat: " . $resultat . "<hr>";
// addition
$resultat = $a + $b;
echo "a + b = ". $resultat;
echo "<br>";
// subtraktion
$resultat = $a - $b;
echo "a - b = ". $resultat;
echo "<br>";
// multiplikation
$resultat = $a * $b;
echo "a * b = ". $resultat;
echo "<br>";
// division
$resultat = $a / $b;
echo "a / b = ". $resultat;
echo "<br>";
// modulo
$resultat = $a%$b;
echo "a % b = ". $resultat;
echo "<br>";
?>