[FX.php List] A nagging question: Foreach

Andrew Denman adenman at tmea.org
Tue Sep 23 13:33:05 MDT 2008


And if you need the key as well (to get the recid or modid):

list($key, $values) = each($queryResult['data']);

Andrew Denman

-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Derrick Fogle
Sent: Monday, September 22, 2008 9:33 PM
To: FX.php Discussion List
Subject: Re: [FX.php List] A nagging question: Foreach

Dang, I knew there was a much easier, more "compact code" way than how  
I was doing it. Thanks Andy, those are the most personally useful code  
tips I've seen in a while.

On Sep 22, 2008, at 9:26 PM, Andy Gaunt wrote:

> $value = current($queryResult['data']);
>
> $queryResult = FMFind (true, 'full',false);


Derrick
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list