[FX.php List] A nagging question: Foreach
Gjermund Gusland Thorsen
ggt667 at gmail.com
Tue Sep 23 13:44:22 MDT 2008
Or
---
list($recid,$modid) = explode( '.', key( $r['data'] ) );
---
ggt
2008/9/23 Andrew Denman <adenman at tmea.org>:
> 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
>
> _______________________________________________
> 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