PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
First off, I am new to programming in PHP. I am having trouble creating these if statements to functions. i am not getting the passing of variables to and from within functions. If any one can help me put these if statements to functions or explain to me how to pass the variables that would be great. Thanks for future help
function functionname($varableshere)
{
return $avalue;
}
so for example:
function myfunction($variable1,$variable2)
{
return $variable1+$variable2;
}
print myFunction(3,2);