[thelist] [PHP] oddity: popping array from function

Erik Mattheis gozz at gozz.com
Wed Feb 26 11:43:01 CST 2003


On Wednesday, February 26, 2003, at 11:33  AM, Howard Cheng wrote:
> At 10:03 AM 2/26/2003 -0600, Erik Mattheis wrote:
>> $results = array();
>> while ($results []= mysql_fetch_assoc($result));
>
> If I read this correctly, wouldn't each array member of the $results
> array
> be an array itself?

Correct.

>> returnItem($results[$i],$results[$i+1],$results[$i]['event_type']);
>>                 $structure []= $a;
> returnItem($results[$i]['unix_time'], [value missing here],
> $results[$i]['event_type']);

Duh. Thanks for noticing my silly mistake.

-----------------------
Erik Mattheis
GoZz Digital
<http://goZz.com/>
Flash and ColdFusion Development
Minneapolis, MN
-----------------------




More information about the thelist mailing list