I have been using php for a while, but have never used arrays and think I need to for this task.
I want to break a string up that is extracted from a database and add a <div></div> tag pair to each word in the string
I think I understand how to explode and then implode the string as below
$words = " one two three ";
$stuff = explode(" ", $words);
$newstuff = implode("<DIV>", $stuff);
echo $newstuff;
BUt I can't see a way to add the </div> tag after each word. Any ideas?