<?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>Thu, 17 May 2012 03:17:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Erik Kralj</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-26316</link>
		<dc:creator>Erik Kralj</dc:creator>
		<pubDate>Mon, 07 May 2012 11:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-26316</guid>
		<description>Best function I&#039;ve seen in a long time. Great tutorial! ;)</description>
		<content:encoded><![CDATA[<p>Best function I&#8217;ve seen in a long time. Great tutorial! <img src='http://cubiq.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CloudCart</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-26180</link>
		<dc:creator>CloudCart</dc:creator>
		<pubDate>Fri, 20 Apr 2012 09:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-26180</guid>
		<description>Thanks for this! I&#039;ve edited it a little bit becouse it won&#039;t work correctly for me:

function parseUrl($sVar) {
	$sDelimiter = &#039;-&#039;;
	$sVar = urldecode($sVar);
	$sVar = iconv(&#039;UTF-8&#039;, &#039;ASCII//TRANSLIT&#039;, $sVar);
	$sVar = preg_replace(&quot;/[^a-zA-Z0-9\/_&#124;+ -]/&quot;, &#039;&#039;, $sVar);
	$sVar = strtolower(trim($sVar, &#039;-&#039;));
	$sVar = preg_replace(&quot;/[\/_&#124;+ -]+/&quot;, $sDelimiter, $sVar);
}</description>
		<content:encoded><![CDATA[<p>Thanks for this! I&#8217;ve edited it a little bit becouse it won&#8217;t work correctly for me:</p>
<p>function parseUrl($sVar) {<br />
	$sDelimiter = &#8216;-&#8217;;<br />
	$sVar = urldecode($sVar);<br />
	$sVar = iconv(&#8216;UTF-8&#8242;, &#8216;ASCII//TRANSLIT&#8217;, $sVar);<br />
	$sVar = preg_replace(&#8220;/[^a-zA-Z0-9\/_|+ -]/&#8221;, &#8221;, $sVar);<br />
	$sVar = strtolower(trim($sVar, &#8216;-&#8217;));<br />
	$sVar = preg_replace(&#8220;/[\/_|+ -]+/&#8221;, $sDelimiter, $sVar);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo Spinelli</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-26165</link>
		<dc:creator>Matteo Spinelli</dc:creator>
		<pubDate>Wed, 18 Apr 2012 07:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-26165</guid>
		<description>you already have a toAscii function somewhere, call it toAscii2</description>
		<content:encoded><![CDATA[<p>you already have a toAscii function somewhere, call it toAscii2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-26161</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 17 Apr 2012 16:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-26161</guid>
		<description>Why do I get this message? Fatal error: Cannot redeclare toAscii() (previously declared in 

Thank&#039;s</description>
		<content:encoded><![CDATA[<p>Why do I get this message? Fatal error: Cannot redeclare toAscii() (previously declared in </p>
<p>Thank&#8217;s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: João Paulo</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-26126</link>
		<dc:creator>João Paulo</dc:creator>
		<pubDate>Thu, 12 Apr 2012 01:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-26126</guid>
		<description>&lt;strong&gt;Limite char&lt;/strong&gt;
&lt;pre&gt;
function url_slug($str, $replace=array(), $delimiter=&#039;-&#039;, $maxLength=200) {

	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;%[^-/+&#124;\w ]%&quot;, &#039;&#039;, $clean);
	$clean = strtolower(trim(substr($clean, 0, $maxLength), &#039;-&#039;));
	$clean = preg_replace(&quot;/[\/_&#124;+ -]+/&quot;, $delimiter, $clean);

	return $clean;
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><strong>Limite char</strong></p>
<pre>
function url_slug($str, $replace=array(), $delimiter='-', $maxLength=200) {

	if( !empty($replace) ) {
		$str = str_replace((array)$replace, ' ', $str);
	}

	$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);
	$clean = preg_replace("%[^-/+|\w ]%", '', $clean);
	$clean = strtolower(trim(substr($clean, 0, $maxLength), '-'));
	$clean = preg_replace("/[\/_|+ -]+/", $delimiter, $clean);

	return $clean;
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: simone</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-26116</link>
		<dc:creator>simone</dc:creator>
		<pubDate>Fri, 06 Apr 2012 13:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-26116</guid>
		<description>I&#039;m gonna use this in all my future projects. Thank you so much!</description>
		<content:encoded><![CDATA[<p>I&#8217;m gonna use this in all my future projects. Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gadgetdude</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25975</link>
		<dc:creator>Gadgetdude</dc:creator>
		<pubDate>Thu, 08 Mar 2012 15:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25975</guid>
		<description>How does it cope with foreign languages like Greek and Russian? Or do I have to add a function that will convert &quot;здраствуйте&quot; into &quot;zdrastvuyte&quot; for example?</description>
		<content:encoded><![CDATA[<p>How does it cope with foreign languages like Greek and Russian? Or do I have to add a function that will convert &#8220;здраствуйте&#8221; into &#8220;zdrastvuyte&#8221; for example?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TED</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25913</link>
		<dc:creator>TED</dc:creator>
		<pubDate>Sun, 26 Feb 2012 13:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25913</guid>
		<description>Interesting..  that&#039;s an odd example but I would do this by counting the blanks within and maybe putting each word into an array..  then associate and replace the blank.

All depends on whether the bar foo are under your control or not, could become complicated quite quickly.

Maybe a silly question, but are you just looking to delete the space in all words?</description>
		<content:encoded><![CDATA[<p>Interesting..  that&#8217;s an odd example but I would do this by counting the blanks within and maybe putting each word into an array..  then associate and replace the blank.</p>
<p>All depends on whether the bar foo are under your control or not, could become complicated quite quickly.</p>
<p>Maybe a silly question, but are you just looking to delete the space in all words?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TED</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25912</link>
		<dc:creator>TED</dc:creator>
		<pubDate>Sun, 26 Feb 2012 13:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25912</guid>
		<description>Nice, will be using this for cleaning the urls on my new expatriate website.  Thanks :)</description>
		<content:encoded><![CDATA[<p>Nice, will be using this for cleaning the urls on my new expatriate website.  Thanks <img src='http://cubiq.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guthrie28Stefanie</title>
		<link>http://cubiq.org/the-perfect-php-clean-url-generator/comment-page-2#comment-25858</link>
		<dc:creator>Guthrie28Stefanie</dc:creator>
		<pubDate>Fri, 17 Feb 2012 10:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=12#comment-25858</guid>
		<description>I had got a dream to start my firm, but I didn&#039;t have enough amount of cash to do that. Thank God my close fellow proposed to utilize the business loans. Thence I took the collateral loan and made real my old dream.</description>
		<content:encoded><![CDATA[<p>I had got a dream to start my firm, but I didn&#8217;t have enough amount of cash to do that. Thank God my close fellow proposed to utilize the business loans. Thence I took the collateral loan and made real my old dream.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

