Thank you.
Okay, I've taken my best stab at this now - how am I doing?

Seriously, I'm a little stuck with the for loop and would appreciate some help.
Firstly, the data is a string of words seperated by spaces. Processing the array looks like this:
PHP Code:
$taglist = mysql_query ("SELECT tags FROM bookmarks");
$tags1 = explode (" ", $taglist);
$tags = array_unique ($tags1);
$numtags = count ($tags);
That seems simple enough so far. Now the for loop:
PHP Code:
for ($numtags; $numtags > 0; $numtags--) {
echo $tags[0];
}
Firstly, I'm assuming using $numtags as the initial value is the right thing to do here, given that I aim to echo each substring individually, correct?
Secondly, is "$numtags--" the right way to decrement?
Thirdly, how do I increment the array number in each iteration of the loop?
Thanks.