$addnum = 20+30;
$addstr="I love "."PHP";
$sub = 35.75 - 28.25;
$mul = 8 * 50;
$mod = 65 % 2;
$inc = 5; $inc = ++$inc;
$dec = 5; $dec = --$dec;
$result = "addnum:$addnum
";
$result .= "addstr:$addstr
";
$result .= "sub:$sub
";
$result .= "mul:$mul
";
$result .= "mod:$mod
";
$result .= "inc:$inc
";
$result .= "dec:$dec
";
?>
Arithmetical Operators