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

Bob Patin bob at patin.com
Thu Apr 19 12:24:24 MDT 2007


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



More information about the FX.php_List mailing list