<?php function fn(&$val, $qty, $year) { $res = $val; if ($val > 70) $res -= 2; if ($qty > 120) $res -= 1; if ($year > 2007) $res -= 4; return $res; } $a = 72; fn($a,10,10); var_dump($a);
You have javascript disabled. You will not be able to edit any code.