Create an UL from comma separated Values in PHP
<p>I'm creating a user input where I want them to list links as well as descriptions.</p>

<p>Doing this from scratch, so I'm open to sytax suggestions. I was thinking of something like this:</p>

<pre><code>www.ebay.com | "my Ebay" , http://www.craigslist.org?s=bla | "Craiglist" ,
www.twitter.com/ev | "My Twitter"
</code></pre>

<p>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. </p>

<p>so goals:</p>

<ol>
<li>Grab URL, if HTTP is append it, take it off</li>
<li>Grab Description</li>
<li><p>Create link, similar to this</p>

<pre><code>&lt;a href="http://&lt;?php echo $link; ?&gt;"&gt;&lt;?php echo $desc; ?&gt;&lt;/a&gt;&lt;/li&gt;
</code></pre></li>
</ol>
