Re: [PHP] Sorry! The $ character is still making problems

2001-10-03 Thread Rasmus Lerdorf
Well, PHP is not adding the line-feed. It must be in your $copy values. Run trim() on it before displaying: echo ''.trim($copy).''; -Rasmus On Wed, 3 Oct 2001, Dominik wrote: > Ok, let me explain exactly what is happening. On a page, try printing out > this code: > > foreach($imgs as $cop

[PHP] Sorry! The $ character is still making problems

2001-10-03 Thread Dominik
Ok, let me explain exactly what is happening. On a page, try printing out this code: foreach($imgs as $copy) { echo $copy; } $imgs is of course an array. The code though goes through all the $imgs and displays as so image1 image2 image3 but I need it like this: image1 image2 image