OK, another quickie,
How do I pass an array to a function? This is what I have, and the second
function doesn't seem to be getting the array somehow. I'm sure it's in
the function declaration...
function one(){
return $array; // yes, there is more to this function, and assume that
"$array" is a real array
}
funtcion two($arrayArg){ // <- I'm sure the prob is here.
print_r($arrayA rg); // This isn't printing anything, when it does in one()
}
then I call:
two(one());
Once again, I'm sure the prob is in the declaration.
Thanks in advance,
-Eric Kincl
How do I pass an array to a function? This is what I have, and the second
function doesn't seem to be getting the array somehow. I'm sure it's in
the function declaration...
function one(){
return $array; // yes, there is more to this function, and assume that
"$array" is a real array
}
funtcion two($arrayArg){ // <- I'm sure the prob is here.
print_r($arrayA rg); // This isn't printing anything, when it does in one()
}
then I call:
two(one());
Once again, I'm sure the prob is in the declaration.
Thanks in advance,
-Eric Kincl
Comment