while(list($v,$k)=each($array))
{
print $k.'='.$v ."<br>\n";
}
This may return something like this:
0=hello<br>
1=world<br>
2=ericsson<br>
3=nokia<br>
But the return I want should look like this:
0=hello<br>
1=world<br>
2=ericsson<br>
3=nokia
I.e. I want to check in the loop if this is the last in line, therefore skip the last - ".<br>\n" - bit.