<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'PHP Generate URL From Text'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 10:26:21 GMT</pubDate>
<item>
<title>neoteknic said on 8/21/11</title>
<link>http://snipplr.com/view/9024/php-generate-url-from-text/</link>
<description><![CDATA[ Nice function for url RW!

This is the optimized version :

function generate_url_from_text($t) {
return strtolower(preg_replace('/-+/','-',str_replace(' ','-',trim(preg_replace('/ +/',' ',preg_replace('/[^A-Za-z0-9-]/',' ',$t))))));
} ]]></description>
<pubDate>Sun, 21 Aug 2011 14:03:54 GMT</pubDate>
<guid>http://snipplr.com/view/9024/php-generate-url-from-text/</guid>
</item>
</channel>
</rss>