Mike Burdick
09-13-2004, 07:36 PM
Can this be done? I have a list of variables that are assigned $s1=some value, $s2=some other value, $s2 = something else etc…………………………………and so on. I won't know the exact length of it since the user can vary the input.
These numbers are to be manipulated and the following is an example of what I’m thinking:
for( $x=1;$x<$length;$x++){
$value=’s’ . $x;
$total+=$value;
}
Now this doesn’t work…but you get the idea of what I need.
Does anyone have suggestions as how to accomplish this?
Thanks!
- Mike
These numbers are to be manipulated and the following is an example of what I’m thinking:
for( $x=1;$x<$length;$x++){
$value=’s’ . $x;
$total+=$value;
}
Now this doesn’t work…but you get the idea of what I need.
Does anyone have suggestions as how to accomplish this?
Thanks!
- Mike