08-13-2008, 03:48 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Apr 2008
Posts: 110
Thanks: 97
|
function that returns an array -- why not working?
My code (kinda lengthy) for this function is working, and goes something like this:
PHP Code:
function (udf_whatnot)
{
$array = array()
For (1 to $n)
{
Do a calculation;
array_push($array, etc.) ;
}
// (The array is now complete and checks out OK.)
return $array ;
}
But...the array is NOT returned as expected! What erroneous assumption(s) am I making??
I checked out the documentation, but to no avail.
Thanks,
Dave
|
|
|
|