ok, this might seem pretty simple to most of your guys. Everytime I think I am getting good at php I find that I don't understand something simple and I am brought back to the basics. Anyway, here is my question?
I am writiing a function, and I want to return a couple of values. I have to use the return statement since the scope of the variables are within my function. Can I use this on two values, here is a basic example. I am not putting my actual funciton due to the complexity and length of the function.
function myFunction(x, y)
{
$value1 = 200 + x;
$value2 = 400 + y;
return $value1;
return $value2;
}
$getValue = myFunction(10, 5);
this will give me the first return, is there a way I can get the values from both returns, I don't eve know if this is possible. Or is there an easier way to get these values.
thanks for your time