in reply to Re: Re: Changing a varaibale name within the program?
in thread Changing a varaibale name within the program?
I'd rather do $choice - 1, but either way, add a comment to the code noting your choice and why you're doing it:
That'll make life much easier for the maintainer.# @user_files starts at zero, user choice starts at 1 process($user_files[$choice - 1]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Changing a varaibale name within the program?
by Dalin (Sexton) on Jun 27, 2001 at 00:43 UTC |