0
Can sombody help me?
I dindt understand the return in a function!
2 Respostas
+ 1
if you make a function like this example :
--------------------------------------------------------------------------------
<?php
function sum($num1, $num2) {
$res = $num1 + $num2;
return $res;
}
echo sum(8, 3);
?>
--------------------------------------------------------------------------------
when you calls the function .. the program wants to return or to give you the value of tge variable $res not any other variable ..
function sum = $res (i hope i could help you)
0
Thank you very mutch!!!