PHP / HTML - Generate a html list from a array

ndolenrelay

New Member
I have a array like \[code\]('mary', 'johnny', 'butch', 'pony', 'katy', 'chuck', 'norris')\[/code\]The number of elements can vary...How can I build a nice list from all these elements, like this:\[code\]<ul> <li> Mary Johnny Butch </li> <li> Pony Katy </li> <li> Chuck Norris </li>\[/code\]?Basically build the list like a spiral:\[code\]> ------------- |<--------------|>-------------- |<--------------\[/code\]The number of list items is fixed, for eg. 3 in the example above
 
Back
Top