<?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: My inc.functions.php &#8211; Part 2 : Creating a post slug</title>
	<atom:link href="http://www.bram.us/2006/12/18/my-incfunctionsphp-part-2-creating-a-post-slug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bram.us/2006/12/18/my-incfunctionsphp-part-2-creating-a-post-slug/</link>
	<description>A rather geeky/technical weblog by Bram(us) Van Damme</description>
	<lastBuildDate>Tue, 07 Feb 2012 04:34:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Weblap.ro</title>
		<link>http://www.bram.us/2006/12/18/my-incfunctionsphp-part-2-creating-a-post-slug/#comment-178</link>
		<dc:creator>Weblap.ro</dc:creator>
		<pubDate>Sat, 06 Mar 2010 11:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.bram.us/2006/12/18/my-incfunctionsphp-part-2-creating-a-post-slug/#comment-178</guid>
		<description>function remove_accent($str)
{
  $a = array(&#039;À&#039;,&#039;Á&#039;,&#039;Â&#039;,&#039;Ã&#039;,&#039;Ä&#039;,&#039;Å&#039;,&#039;Æ&#039;,&#039;Ç&#039;,&#039;È&#039;,&#039;É&#039;,&#039;Ê&#039;,&#039;Ë&#039;,&#039;Ì&#039;,&#039;Í&#039;,&#039;Î&#039;,&#039;Ï&#039;,&#039;Ð&#039;,&#039;Ñ&#039;,&#039;Ò&#039;,&#039;Ó&#039;,&#039;Ô&#039;,&#039;Õ&#039;,&#039;Ö&#039;,&#039;Ø&#039;,&#039;Ù&#039;,&#039;Ú&#039;,&#039;Û&#039;,&#039;Ü&#039;,&#039;Ý&#039;,&#039;ß&#039;,&#039;à&#039;,&#039;á&#039;,&#039;â&#039;,&#039;ã&#039;,&#039;ä&#039;,&#039;å&#039;,&#039;æ&#039;,&#039;ç&#039;,&#039;è&#039;,&#039;é&#039;,&#039;ê&#039;,&#039;ë&#039;,&#039;ì&#039;,&#039;í&#039;,&#039;î&#039;,&#039;ï&#039;,&#039;ñ&#039;,&#039;ò&#039;,&#039;ó&#039;,&#039;ô&#039;,&#039;õ&#039;,&#039;ö&#039;,&#039;ø&#039;,&#039;ù&#039;,&#039;ú&#039;,&#039;û&#039;,&#039;ü&#039;,&#039;ý&#039;,&#039;ÿ&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;Œ&#039;,&#039;œ&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;Š&#039;,&#039;š&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;Ÿ&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;Ž&#039;,&#039;ž&#039;,&#039;?&#039;,&#039;ƒ&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;,&#039;?&#039;);
  $b = array(&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;A&#039;,&#039;AE&#039;,&#039;C&#039;,&#039;E&#039;,&#039;E&#039;,&#039;E&#039;,&#039;E&#039;,&#039;I&#039;,&#039;I&#039;,&#039;I&#039;,&#039;I&#039;,&#039;D&#039;,&#039;N&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;O&#039;,&#039;U&#039;,&#039;U&#039;,&#039;U&#039;,&#039;U&#039;,&#039;Y&#039;,&#039;s&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;a&#039;,&#039;ae&#039;,&#039;c&#039;,&#039;e&#039;,&#039;e&#039;,&#039;e&#039;,&#039;e&#039;,&#039;i&#039;,&#039;i&#039;,&#039;i&#039;,&#039;i&#039;,&#039;n&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;o&#039;,&#039;u&#039;,&#039;u&#039;,&#039;u&#039;,&#039;u&#039;,&#039;y&#039;,&#039;y&#039;,&#039;A&#039;,&#039;a&#039;,&#039;A&#039;,&#039;a&#039;,&#039;A&#039;,&#039;a&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;C&#039;,&#039;c&#039;,&#039;D&#039;,&#039;d&#039;,&#039;D&#039;,&#039;d&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;E&#039;,&#039;e&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;G&#039;,&#039;g&#039;,&#039;H&#039;,&#039;h&#039;,&#039;H&#039;,&#039;h&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;I&#039;,&#039;i&#039;,&#039;IJ&#039;,&#039;ij&#039;,&#039;J&#039;,&#039;j&#039;,&#039;K&#039;,&#039;k&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;L&#039;,&#039;l&#039;,&#039;l&#039;,&#039;l&#039;,&#039;N&#039;,&#039;n&#039;,&#039;N&#039;,&#039;n&#039;,&#039;N&#039;,&#039;n&#039;,&#039;n&#039;,&#039;O&#039;,&#039;o&#039;,&#039;O&#039;,&#039;o&#039;,&#039;O&#039;,&#039;o&#039;,&#039;OE&#039;,&#039;oe&#039;,&#039;R&#039;,&#039;r&#039;,&#039;R&#039;,&#039;r&#039;,&#039;R&#039;,&#039;r&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;S&#039;,&#039;s&#039;,&#039;T&#039;,&#039;t&#039;,&#039;T&#039;,&#039;t&#039;,&#039;T&#039;,&#039;t&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;W&#039;,&#039;w&#039;,&#039;Y&#039;,&#039;y&#039;,&#039;Y&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;Z&#039;,&#039;z&#039;,&#039;s&#039;,&#039;f&#039;,&#039;O&#039;,&#039;o&#039;,&#039;U&#039;,&#039;u&#039;,&#039;A&#039;,&#039;a&#039;,&#039;I&#039;,&#039;i&#039;,&#039;O&#039;,&#039;o&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;U&#039;,&#039;u&#039;,&#039;A&#039;,&#039;a&#039;,&#039;AE&#039;,&#039;ae&#039;,&#039;O&#039;,&#039;o&#039;);
  return str_replace($a, $b, $str);
}
function post_slug($str)
{
  return strtolower(preg_replace(array(&#039;/[^a-zA-Z0-9 -]/&#039;, &#039;/[ -]+/&#039;, &#039;/^-&#124;-$/&#039;), array(&#039;&#039;, &#039;-&#039;, &#039;&#039;), remove_accent($str)));
}</description>
		<content:encoded><![CDATA[<p>function remove_accent($str)<br />
{<br />
  $a = array(&#8216;À&#8217;,'Á&#8217;,'Â&#8217;,'Ã&#8217;,'Ä&#8217;,'Å&#8217;,'Æ&#8217;,'Ç&#8217;,'È&#8217;,'É&#8217;,'Ê&#8217;,'Ë&#8217;,'Ì&#8217;,'Í&#8217;,'Î&#8217;,'Ï&#8217;,'Ð&#8217;,'Ñ&#8217;,'Ò&#8217;,'Ó&#8217;,'Ô&#8217;,'Õ&#8217;,'Ö&#8217;,'Ø&#8217;,'Ù&#8217;,'Ú&#8217;,'Û&#8217;,'Ü&#8217;,'Ý&#8217;,'ß&#8217;,'à&#8217;,'á&#8217;,'â&#8217;,'ã&#8217;,'ä&#8217;,'å&#8217;,'æ&#8217;,'ç&#8217;,'è&#8217;,'é&#8217;,'ê&#8217;,'ë&#8217;,'ì&#8217;,'í&#8217;,'î&#8217;,'ï&#8217;,'ñ&#8217;,'ò&#8217;,'ó&#8217;,'ô&#8217;,'õ&#8217;,'ö&#8217;,'ø&#8217;,'ù&#8217;,'ú&#8217;,'û&#8217;,'ü&#8217;,'ý&#8217;,'ÿ&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'Œ&#8217;,'œ&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'Š&#8217;,'š&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'Ÿ&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'Ž&#8217;,'ž&#8217;,'?&#8217;,'ƒ&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;,'?&#8217;);<br />
  $b = array(&#8216;A&#8217;,'A&#8217;,'A&#8217;,'A&#8217;,'A&#8217;,'A&#8217;,'AE&#8217;,'C&#8217;,'E&#8217;,'E&#8217;,'E&#8217;,'E&#8217;,'I&#8217;,'I&#8217;,'I&#8217;,'I&#8217;,'D&#8217;,'N&#8217;,'O&#8217;,'O&#8217;,'O&#8217;,'O&#8217;,'O&#8217;,'O&#8217;,'U&#8217;,'U&#8217;,'U&#8217;,'U&#8217;,'Y&#8217;,'s&#8217;,'a&#8217;,'a&#8217;,'a&#8217;,'a&#8217;,'a&#8217;,'a&#8217;,'ae&#8217;,'c&#8217;,'e&#8217;,'e&#8217;,'e&#8217;,'e&#8217;,'i&#8217;,'i&#8217;,'i&#8217;,'i&#8217;,'n&#8217;,'o&#8217;,'o&#8217;,'o&#8217;,'o&#8217;,'o&#8217;,'o&#8217;,'u&#8217;,'u&#8217;,'u&#8217;,'u&#8217;,'y&#8217;,'y&#8217;,'A&#8217;,'a&#8217;,'A&#8217;,'a&#8217;,'A&#8217;,'a&#8217;,'C&#8217;,'c&#8217;,'C&#8217;,'c&#8217;,'C&#8217;,'c&#8217;,'C&#8217;,'c&#8217;,'D&#8217;,'d&#8217;,'D&#8217;,'d&#8217;,'E&#8217;,'e&#8217;,'E&#8217;,'e&#8217;,'E&#8217;,'e&#8217;,'E&#8217;,'e&#8217;,'E&#8217;,'e&#8217;,'G&#8217;,'g&#8217;,'G&#8217;,'g&#8217;,'G&#8217;,'g&#8217;,'G&#8217;,'g&#8217;,'H&#8217;,'h&#8217;,'H&#8217;,'h&#8217;,'I&#8217;,'i&#8217;,'I&#8217;,'i&#8217;,'I&#8217;,'i&#8217;,'I&#8217;,'i&#8217;,'I&#8217;,'i&#8217;,'IJ&#8217;,'ij&#8217;,'J&#8217;,'j&#8217;,'K&#8217;,'k&#8217;,'L&#8217;,'l&#8217;,'L&#8217;,'l&#8217;,'L&#8217;,'l&#8217;,'L&#8217;,'l&#8217;,'l&#8217;,'l&#8217;,'N&#8217;,'n&#8217;,'N&#8217;,'n&#8217;,'N&#8217;,'n&#8217;,'n&#8217;,'O&#8217;,'o&#8217;,'O&#8217;,'o&#8217;,'O&#8217;,'o&#8217;,'OE&#8217;,'oe&#8217;,'R&#8217;,'r&#8217;,'R&#8217;,'r&#8217;,'R&#8217;,'r&#8217;,'S&#8217;,'s&#8217;,'S&#8217;,'s&#8217;,'S&#8217;,'s&#8217;,'S&#8217;,'s&#8217;,'T&#8217;,'t&#8217;,'T&#8217;,'t&#8217;,'T&#8217;,'t&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'W&#8217;,'w&#8217;,'Y&#8217;,'y&#8217;,'Y&#8217;,'Z&#8217;,'z&#8217;,'Z&#8217;,'z&#8217;,'Z&#8217;,'z&#8217;,'s&#8217;,'f&#8217;,'O&#8217;,'o&#8217;,'U&#8217;,'u&#8217;,'A&#8217;,'a&#8217;,'I&#8217;,'i&#8217;,'O&#8217;,'o&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'U&#8217;,'u&#8217;,'A&#8217;,'a&#8217;,'AE&#8217;,'ae&#8217;,'O&#8217;,'o&#8217;);<br />
  return str_replace($a, $b, $str);<br />
}</p>
<p>function post_slug($str)<br />
{<br />
  return strtolower(preg_replace(array(&#8216;/[^a-zA-Z0-9 -]/&#8217;, &#8216;/[ -]+/&#8217;, &#8216;/^-|-$/&#8217;), array(&#8221;, &#8216;-&#8217;, &#8221;), remove_accent($str)));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Creating A URI Slug With PHP &#124; Talk In Code</title>
		<link>http://www.bram.us/2006/12/18/my-incfunctionsphp-part-2-creating-a-post-slug/#comment-177</link>
		<dc:creator>Creating A URI Slug With PHP &#124; Talk In Code</dc:creator>
		<pubDate>Fri, 28 Mar 2008 11:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.bram.us/2006/12/18/my-incfunctionsphp-part-2-creating-a-post-slug/#comment-177</guid>
		<description>[...] function is taken from Bramus and his excellent article about creating a post slug, and it does the job very [...]</description>
		<content:encoded><![CDATA[<p>[...] function is taken from Bramus and his excellent article about creating a post slug, and it does the job very [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart</title>
		<link>http://www.bram.us/2006/12/18/my-incfunctionsphp-part-2-creating-a-post-slug/#comment-176</link>
		<dc:creator>Bart</dc:creator>
		<pubDate>Wed, 27 Dec 2006 15:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.bram.us/2006/12/18/my-incfunctionsphp-part-2-creating-a-post-slug/#comment-176</guid>
		<description>This function is what we call dirify()
http://kalsey.com/2004/07/dirify_in_php/</description>
		<content:encoded><![CDATA[<p>This function is what we call dirify()</p>
<p><a href="http://kalsey.com/2004/07/dirify_in_php/" >http://kalsey.com/2004/07/dirify_in_php/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

