I am struggling understanding how this code works. when we call the function with a value 5, the value of c, becomes 5. Now 5 + 25 = 30 . What i don't understand is how the value of the $_GET['c']
equals to 25, when it should be 5.
my answer would therefore be 5 + 25 - 5 - 10 = 15.
<?php
function process($c, $d = 25){
global $e;
$retval = $c + $d - $_GET['c'] - $e;
return $retval;
}
$e = 10;
echo process(5);
?>