Return in a function - PHP -
Even if I understand what everything is doing, then I argue that < Code> Returns $ toggle below the working code:
I do my work and call it back by repeating it, but what happens in that return $ totaal function? I never called it, but without that return I get an empty place.
I should have lost some kind of logic in my mind ....
return gives the word itself (returns back) something.
In this case either $ var1 + $ var2 or $ var1 - $ var2 .
The variables inside a function can not be reached generally outside of it.
with return but you can get something from within the function to get it
Keep in mind that the execution of a return function will end.
Comments
Post a Comment