Hi all,
How do you return more than one value from a function?
Thanks, David
You return an array, or you pass the argument by reference, or change an external variable declared global inside the function.
Pass by reference:
function myfunc(&$reference_arg) { //etc }
well to the best of my knowledge functions can have only a single return value. however you can code in the function in such a way that the return "value" can have more than one value in it eg. u could return a resultset in a function. it depends on what you need to return. perhaps if u let us know more about what it is that you need we can help
reg kevin