Div's code looks like a test case, where 1 was used instead of a counter in $gettok() (ie it looks like he just wants to know how to evaluate
dynamic variables). He'll have to be more specific if he wants something else in addition.
Edit: like what you posted