So I generate table rows containing images whose names are listed in an array located in an extrenal text file. So far, that works fine. But I would also like to include descriptions for each image. The problem is that my output produces a space and carriage return after each instance where the image name (from the array list) appears. Someone suggested the following for my code:
trim($description)
and
preg_replace("/\s/", "", $description)
I tried both of these by themselves and together, yet I still get a space in my output!
What is going on here?
Please let me know if you need more details to help me out.
Thank you.