Php explode errors

I’m having problems with the following code:

$images = explode(',',$row_stock[Picture_Refs]);
echo $images[0]; 

Instead of just returning the variable I want it is somehow managing to put in a space before the variable!! Anyone have any ideas why?

The string that it is exploding is like the following:
FH06UPX1.jpg,FH06UPX2.jpg,FH06UPX3.jpg

All I’m looking for it to echo is for example FH06UPX1.jpg

Any help as always much appreciated, Thanks in advance.

Try


echo "'" . $row_stock[Picture_Refs] . "'<br />";
echo "'" . $images[0] . "'<br />";

and see what shows up.