$d = "abcd";function x($a,$b,$c=0) { global $d; if (empty($c)) $c = $d; return $c;}echo x(1,2); // return "abcd"echo x(1,2,3); // return "3"