Hi,
I have a function currently that return a string to the main body:
function example(){
// some codes here
return $to_print;
}
My question is, i would need to return another numeric result from this function..Is there a way to return two values from a function? For example, can i:
function example(){
// some codes here
return $to_print;
return $number;
}
If its possible, how can i get the value in the main program?
Any help / advice will be appreciated. Thanks.