Originally posted by Weedpacket
cassius: strings, like arrays, start counting their characters at 0, not 1. [/B]
...I know. I probably just didn't make myself clear enough. Just because strings start counting their characters at 0(not 1) my example was made up so that he would have to do
$sub = substr($var_name, 2, 2)
to get 'ar' as the result since my example just made $var_name contain the string '$var'.
Sorry if I confused more than I Helped in this matter...but I cannot either see the meaning of this post. As you say weedpacket, one allready know the name of the variable so to "retreive" the name of the variable doesn't make any sense to me either(unless there are som explaination for this that I can't come to think of??).