Function with list()
Posted: Wed Jun 08, 2005 12:32 am
Hello,
How would I do, or is it possible to go
then it would return the vars of list(), avar bvar cvar dvar.
Would this be possible to return all of these variables from a function?
thanks
How would I do, or is it possible to go
Code: Select all
function foo($in){
return list($aval,$bval,$cval,$dval)=explode("-", $in );
}
foo("a-b-c-d");Would this be possible to return all of these variables from a function?
thanks