View Single Post
Old 08-13-2008, 03:48 PM   #1 (permalink)
Dave
The Acquainted
 
Dave's Avatar
 
Join Date: Apr 2008
Posts: 110
Thanks: 97
Dave is on a distinguished road
Default 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($arrayetc.) ;
   }
   
// (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
Dave is offline  
Reply With Quote