in reply to Re: String manipulation
in thread String manipulation
I totally agree here. Adding step each time (instead of the multiplication) to the total is fundamentally a more simple and logical way to do this.
Getting back to the OP, though, and while I think he's taken enough flak for posting broken code, why is $step 3 in the example when he states that it can be only 1 or 2? ;)