$string = $info3['remarks'];
$substring2 = substr($string, 1);
$pieces = explode('|', $substring2, -1);
// it works if I echo pieces[0] or [2] here
$i=2;
while ($pieces[i] != " "){
echo "<p>";
echo $pieces[i];
echo "</p>";
echo $i;
$i++;
}
hi,
I have a problem with this, I cannot get it to echo anything (other than the value of $i and the loop is non-terminating ... I am not sure how to test for an empty array value
Any help, as ever, muchly appreciated.