View Single Post
  #5 (permalink)  
Old 10-30-2007, 07:30 PM
mikesmith76 mikesmith76 is offline
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default Re: Using Variables outside a function

In your situation i think i'd be tempted to return an array of values from the function rather than use global variables. Just makes the function more independent and reusable. What if you decided to move that function to another file? You'd have to remember to move all the related variables also.

Something to think about.

Mike
Reply With Quote