[FX.php List] Filling a multi-dimensional array

DC dan.cynosure at dbmscan.com
Tue Sep 9 11:32:52 MDT 2008


$additionalParameters[]= array($value2['paramkey'][0] => 
$value2['paramvalue'][0]);

Jonathan Schwartz wrote:
> Apologies ahead of time for asking this RTM question, but I need to get 
> this worked at ASAP.
> 
> I need to populate a multi-dimenisional array from an FMP query.  The 
> existing code, below, populates only the last record. What syntax build 
> the array with all found values?
> 
> 
> $additionalParameters= array();
>     foreach($findResult2['data'] as $key => $value2)
>     {
>     $additionalParameters= array($value2['paramkey'][0] => 
> $value2['paramvalue'][0]);
>     }
> 
> 
> Thanks
> 
> J


More information about the FX.php_List mailing list