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.