function raschet($a, $b) { $c = $a + $b; return $c; // или можна масив например }
$d = raschet(2, 5);