ok, this is cool, but i forgot something.
i need to use the function to build two arrays. then i want to assign variables to them outside of the function. ( i am going to be doing this over and over)
like this.
function do_something();
{
$foo = array(1,2,3,4);
$bar = array(5,6,7,8);
return $foo, $bar;
}
list($foo, $bar) = do_something();
will this work? or something like it?
i looked up list in my book, and there wasn't much there
thanks for your help