function test($a,$b) { $result = pow($a,2) + pow($b,2); echo $result;}test(4,6);
这样写应该可以符合你的需求,希望能帮助到你