Hello,
I know how you pass a variable between functions with a global, but how to you pass arrays through?
Cheers.
and why won't global work?
it just doesn't, maybe I doing something wrong?
function one() { global $harray; $harray = array (0 => "one", "two"); } function two() { global $harray; echo $harray[0]; }
Should work?
it should work, with one term, the one() function must be called at first before two()
right, got it, the order was wrong.
thanks alot.