I'm creating a user input where I want them to list links as well as descriptions.
Doing this from scratch, so I'm open to sytax suggestions. I was thinking of something like this:
www.ebay.com | "my Ebay" , http://www.craigslist.org?s=bla | "Craiglist" ,
www.twitter.com/ev | "My Twitter"
I'd like to convert this into an UL with php. I think I would use a for each but wanted to see what the best way to go about this would be.
so goals:
- Grab URL, if HTTP is append it, take it off
- Grab Description
Create link, similar to this
<a href="http://<?php echo $link; ?>"><?php echo $desc; ?></a></li>