0
how to add a default argument for the below code
<?php function expo($n, $e) { return $n ^ $e; } ?>
10 Respuestas
+ 1
Have you tried turning it off and on again?
0
function expo($n= 5, $e=8)
0
then what would be the expected output
0
I am not getting output could you just explain what and how to add a default arguments in php in programs
0
do you know what "^" bitwise operator doing?
0
maybe this code helps:
function expo ($n=2, $m=3){
return $n**$m;
}
0
dude yaroslav in your code why have you written echo sum(7,3) you could have written echo sum(2,1) itself right I dint understand that part
0
2 and 1 are default values if u try emply sum( );
0
oh okay thanks