Jump to content

Unordered List problems


Recommended Posts

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>';

 

 

Link to comment
https://forums.phpfreaks.com/topic/265081-unordered-list-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.