StevenJ wrote:
I have written a function to return one field (MySQL) of the last uploaded record, the end of the function looks like so:
return ($row_latest_image['filename']);
to return more than one value from a function? and if so how?
to return more than one value is easy!
After posting, I looked at what I my question, and it came to me. So for all those wishing to "Retun More Than One Value From A Funtion"
use a function call like:
list ($var1, $Var2, $Var3) = function_name($calling_parameter) ;
the return statement in your function should look like
return ($val1, $val2, $val3) ;