Asheeown Posted May 3, 2008 Share Posted May 3, 2008 I have text that gets echoed out as news posts, and some of them have lists like this: - Category - Option 1 - Option 2 But it comes out like this - Category - Option 1 - Option 2 Any suggestions on how I can get it to actually space it right? Link to comment https://forums.phpfreaks.com/topic/104001-spacing/ Share on other sites More sharing options...
mrdamien Posted May 3, 2008 Share Posted May 3, 2008 A quick way would be to replace the spaces with " ". str_replace(" ", " ", $str); Link to comment https://forums.phpfreaks.com/topic/104001-spacing/#findComment-532433 Share on other sites More sharing options...
Asheeown Posted May 4, 2008 Author Share Posted May 4, 2008 I tried that, when my news post comes up it doesn't fall down to the next line when it hits the end of the box it's in because the whole string is one line "word1 word2 word3 word4" etc. Any other ideas? Link to comment https://forums.phpfreaks.com/topic/104001-spacing/#findComment-532510 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.