[email protected] Posted July 1, 2012 Share Posted July 1, 2012 I am having difficulty with making an unordered list work right. I am using the code below to create the UL but I am getting the following outcome: Bulleted ITEM 1 space (or hard return) comma space (or hard return) Bulleting item 2 space (or hard return) comma space (or hard return) And so on. Any ideas of how to change the output formatting? $value = '<ul><li>' . str_replace(',','</li><li>',$value) . '</li></ul>'; Quote Link to comment https://forums.phpfreaks.com/topic/265081-unordered-list-problems/ Share on other sites More sharing options...
Pikachu2000 Posted July 1, 2012 Share Posted July 1, 2012 Look at the page source and see what's wrong with the html markup. That should give you a good idea of what needs to be changed. Quote Link to comment https://forums.phpfreaks.com/topic/265081-unordered-list-problems/#findComment-1358418 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.