This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

variable names

Old posts that have not been replied to for several years.
Locked
c
cez
Voice
Posts: 10
Joined: Mon May 26, 2003 5:19 pm

variable names

Post by cez »

I tend to use same names for some global variables in diffrent scripts. So sometimes when I want to run scripts which uses the same names for global variables its not working very well so I wonder if theres a way to declare them for use only inside the script they are defined in. Like declaring functions as static in c.

hope you understand what i want. thx for your time
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: variable names

Post by user »

Use a namespace. (Feel free to ask if you find the manual a bit sparse on clues)
Locked