MaybeI'm just stupid. Maybe it's because my head is going to explode, but was having am similar problem. Copied the code from previous post and this is how it looks in my code:
$str=$HTTP_SESSION_VARS["topic_code"];
echo "<br>";
echo $str;
$values=explode(", ", $str);
// show values of each element //
$c=count($values);
for ($x=0;$x<$c;$x++) {
echo $values[$c] . "<br>";
}
This is creating the space for the number of elements in the original string, put is not printing the actual values. (sees the <br> but not the $values[$c]
Any idea why would be greatly appreciated!Thank you.