How do I change this function from Random to Sequential

Hi,
I am using this function which is
used to spin text.
Currently it looks to me like it is selected an
element from the $tStringToken array at random.
These two lines seem to be doing that:
Expand|Select|Wrap|Line Numbers

$i = rand(0,$tStringCount);
$replace = $tStringToken[$i];

I would like to change this so that it goes sequentially through
all of the available elements in the array and then when finished
starts again with the first element of the array.
But I…
How do I change this function from Random to Sequential

See original post by jeddiko

Leave a Reply