[FX.php List] Reuse Variables on the same page?

Gjermund Gusland Thorsen ggt667 at gmail.com
Thu Apr 19 12:57:27 MDT 2007


What do you mean by reuse variables?
Is it environmental issue? Like recycling?

ggt667

On 4/19/07, Tom Sepper <tsepper at directorschoice.travel> wrote:
>
> I reuse variables all the time as well. As long as I have no use for the
> first set of data, I reuse most of mine actually.
>
>
> -----Original Message-----
> From: fx.php_list-bounces at mail.iviking.org
> [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
> Sent: Thursday, April 19, 2007 1:24 PM
> To: FX.php Discussion List
> Subject: Re: [FX.php List] Reuse Variables on the same page?
>
> Jonathan,
>
> I reuse variables all the time; for example, if I have multiple FX
> queries, I use $find for all of them, since the variable is
> reinitialized at the beginning of each query. Someone correct me if
> I'm wrong here...
>
> I also reuse counter variables (my normal variable name for a counter
> is always "$counter") all the time, and it never causes me any grief.
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
>
>    CONTACT US VIA INSTANT MESSAGING:
>       AIM or iChat: longterm1954
>       Yahoo: longterm_solutions
>       MSN: tech at longtermsolutions.com
>       ICQ: 159333060
>
>
> On Apr 17, 2007, at 11:35 AM, Jonathan Schwartz wrote:
>
> > Hi Folks,
> >
> > I'm editing someone else's fx.php solution and observed that the
> > code reuses variables on the page. Assuming that the value of the
> > variables is not needed later in the script, are there any reasons
> > why this is a good idea or bad idea?
> >
> > Also, the script uses the same fx.php instance variables several
> > times on the same page.
> >
> > Thanks
> >
> > Jonathan
> > --
> > Jonathan Schwartz
> > Exit 445 Group
> > jonathan at exit445.com
> > http://www.exit445.com
> > 415-381-1852
> > FileMaker 8 Certified Developer
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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