<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The perfect PHP clean url generator</title>
	<atom:link href="http://cubiq.org/the-perfect-php-clean-url-generator/feed" rel="self" type="application/rss+xml" />
	<link>http://cubiq.org/the-perfect-php-clean-url-generator</link>
	<description>Web and mobile development</description>
	<lastBuildDate>Sat, 04 Feb 2012 01:15:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Felix</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25634</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Thu, 05 Jan 2012 08:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25634</guid>
		<description>This function is great, nice clean and short. Is it possible to have the function change the following, if these are all in the same array...

foo-bar foo &gt; This I need to change to &quot;foo-barfoo&quot;

foo bar foo &gt; This I would need to change to &quot;foobarfoo&quot;

but i can&#039;t figure out how to do it with this function, without changing how it works.

Can you help?</description>
		<content:encoded><![CDATA[<p>This function is great, nice clean and short. Is it possible to have the function change the following, if these are all in the same array&#8230;</p>
<p>foo-bar foo &gt; This I need to change to &#8220;foo-barfoo&#8221;</p>
<p>foo bar foo &gt; This I would need to change to &#8220;foobarfoo&#8221;</p>
<p>but i can&#8217;t figure out how to do it with this function, without changing how it works.</p>
<p>Can you help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25560</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Thu, 15 Dec 2011 15:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25560</guid>
		<description>Great man!!!</description>
		<content:encoded><![CDATA[<p>Great man!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: (Almost)Happy User</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25540</link>
		<dc:creator>(Almost)Happy User</dc:creator>
		<pubDate>Sun, 11 Dec 2011 10:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25540</guid>
		<description>This function deletes dots in filenames. How to preserve them?</description>
		<content:encoded><![CDATA[<p>This function deletes dots in filenames. How to preserve them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Funny facebook</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25230</link>
		<dc:creator>Funny facebook</dc:creator>
		<pubDate>Mon, 14 Nov 2011 20:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25230</guid>
		<description>This is great, but not working if you put @.</description>
		<content:encoded><![CDATA[<p>This is great, but not working if you put @.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m4t</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25048</link>
		<dc:creator>m4t</dc:creator>
		<pubDate>Wed, 02 Nov 2011 08:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25048</guid>
		<description>Thanks man! Very helpful  :)</description>
		<content:encoded><![CDATA[<p>Thanks man! Very helpful  <img src='http://cubiq.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Herbert</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-24770</link>
		<dc:creator>Herbert</dc:creator>
		<pubDate>Thu, 13 Oct 2011 16:52:34 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-24770</guid>
		<description>Brilliant use of iconv. Kudos.

I just wanted to add that
/[^a-zA-Z0-9\/_&#124;+ -]/
can be reduced a little to
%[^-/+&#124;\w ]%</description>
		<content:encoded><![CDATA[<p>Brilliant use of iconv. Kudos.</p>
<p>I just wanted to add that<br />
/[^a-zA-Z0-9\/_|+ -]/<br />
can be reduced a little to<br />
%[^-/+|\w ]%</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnyz</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-24736</link>
		<dc:creator>Johnyz</dc:creator>
		<pubDate>Tue, 11 Oct 2011 06:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-24736</guid>
		<description>Perfect! Thank you a lot</description>
		<content:encoded><![CDATA[<p>Perfect! Thank you a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mordomia Mil</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-1#comment-24708</link>
		<dc:creator>Mordomia Mil</dc:creator>
		<pubDate>Fri, 07 Oct 2011 20:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-24708</guid>
		<description>Solution on quotes
&lt;code&gt;
function toAscii($str, $replace=array(), $delimiter=&#039;-&#039;, $charset=&#039;ISO-8859-1&#039;) {
 $str = str_replace(
 array(chr(145), chr(146), chr(147), chr(148), chr(150), chr(151), chr(133)),
 array(&quot;&#039;&quot;, &quot;&#039;&quot;, &#039;&quot;&#039;, &#039;&quot;&#039;, &#039;-&#039;, &#039;--&#039;, &#039;...&#039;),
 $str); // by mordomiamil
$str = iconv($charset, &#039;UTF-8&#039;, $str); // by lelebart
if( !empty($replace) ) {
$str = str_replace((array)$replace, &#039; &#039;, $str);
}
$clean = iconv(&#039;UTF-8&#039;, &#039;ASCII//TRANSLIT&#039;, $str);
$clean = preg_replace(&quot;/[^a-zA-Z0-9\/_&#124;+ -]/&quot;, &#039;&#039;, $clean);
$clean = strtolower(trim($clean, &#039;-&#039;));
$clean = preg_replace(&quot;/[\/_&#124;+ -]+/&quot;, $delimiter, $clean);
return $clean;
}
&lt;code&gt;</description>
		<content:encoded><![CDATA[<p>Solution on quotes<br />
<code><br />
function toAscii($str, $replace=array(), $delimiter='-', $charset='ISO-8859-1') {<br />
 $str = str_replace(<br />
 array(chr(145), chr(146), chr(147), chr(148), chr(150), chr(151), chr(133)),<br />
 array("'", "'", '"', '"', '-', '--', '...'),<br />
 $str); // by mordomiamil<br />
$str = iconv($charset, 'UTF-8', $str); // by lelebart<br />
if( !empty($replace) ) {<br />
$str = str_replace((array)$replace, ' ', $str);<br />
}<br />
$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);<br />
$clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);<br />
$clean = strtolower(trim($clean, '-'));<br />
$clean = preg_replace("/[\/_|+ -]+/", $delimiter, $clean);<br />
return $clean;<br />
}<br />
</code><code></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andré</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-24686</link>
		<dc:creator>andré</dc:creator>
		<pubDate>Wed, 05 Oct 2011 14:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-24686</guid>
		<description>Great job man, thanks!
I just put the code below, before return:
[code]
$clean = strtolower(trim($clean, &#039;-&#039;));
[/code]
this remove &quot;-&quot; at the ende os string.
bye bye</description>
		<content:encoded><![CDATA[<p>Great job man, thanks!<br />
I just put the code below, before return:<br />
[code]<br />
$clean = strtolower(trim($clean, '-'));<br />
[/code]<br />
this remove &#8220;-&#8221; at the ende os string.<br />
bye bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clean url generator (slug) &#124; ash baker</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-24654</link>
		<dc:creator>clean url generator (slug) &#124; ash baker</dc:creator>
		<pubDate>Fri, 30 Sep 2011 04:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-24654</guid>
		<description>[...] http://cubiq.org/the-perfect-php-clean-url-generator [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://cubiq.org/the-perfect-php-clean-url-generator" rel="nofollow">http://cubiq.org/the-perfect-php-clean-url-generator</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

