<?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: PHP Tricks: Eliminate any unwanted characters from a string</title> <atom:link href="http://www.johnrockefeller.net/php-tricks-eliminate-any-unwanted-characters-from-a-string/feed/" rel="self" type="application/rss+xml" /><link>http://www.johnrockefeller.net/php-tricks-eliminate-any-unwanted-characters-from-a-string/</link> <description>A refreshing take on digital art, web development, and emerging technology.</description> <lastBuildDate>Mon, 08 Mar 2010 02:25:05 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: 51st Blog Post! Celebration time! &#124; John Rockefeller's Blog</title><link>http://www.johnrockefeller.net/php-tricks-eliminate-any-unwanted-characters-from-a-string/comment-page-1/#comment-1462</link> <dc:creator>51st Blog Post! Celebration time! &#124; John Rockefeller's Blog</dc:creator> <pubDate>Fri, 26 Sep 2008 03:20:01 +0000</pubDate> <guid isPermaLink="false">http://www.johnrockefeller.net/?p=226#comment-1462</guid> <description>[...] and foremost, the most popular article on this blog is How to eliminate unwanted characters from a string in PHP. In the world of a web developer, your skill levels increase faster than the world spins. If I were [...]</description> <content:encoded><![CDATA[<p>[...] and foremost, the most popular article on this blog is How to eliminate unwanted characters from a string in PHP. In the world of a web developer, your skill levels increase faster than the world spins. If I were [...]</p> ]]></content:encoded> </item> <item><title>By: John</title><link>http://www.johnrockefeller.net/php-tricks-eliminate-any-unwanted-characters-from-a-string/comment-page-1/#comment-22</link> <dc:creator>John</dc:creator> <pubDate>Sat, 05 Jul 2008 14:08:41 +0000</pubDate> <guid isPermaLink="false">http://www.johnrockefeller.net/?p=226#comment-22</guid> <description>You can just replace this &lt;code&gt; preg_match_all (&quot;/[^0-9^a-z^_^.]/â€, $string, $matches);// Loop through the matches with foreachforeach ($matches[0] as $value) {$string = str_replace($value, &quot;&quot;, $string);} &lt;/code With this &lt;code&gt; preg_replace (&quot;/[^0-9^a-z^_^.]/â€, &quot;&quot;, $string); &lt;/code&gt;</description> <content:encoded><![CDATA[<p>You can just replace this<br /> <code><br /> preg_match_all ("/[^0-9^a-z^_^.]/â€, $string, $matches);</p><p> // Loop through the matches with foreach</p><p> foreach ($matches[0] as $value) {</p><p> $string = str_replace($value, "", $string);</p><p> }<br /> &lt;/code<br /> With this<br /> </code><code><br /> preg_replace ("/[^0-9^a-z^_^.]/â€, "", $string);<br /> </code></p> ]]></content:encoded> </item> <item><title>By: A &#187; Blog Archive &#187; PHP Tricks: Eliminate any unwanted characters from a string</title><link>http://www.johnrockefeller.net/php-tricks-eliminate-any-unwanted-characters-from-a-string/comment-page-1/#comment-20</link> <dc:creator>A &#187; Blog Archive &#187; PHP Tricks: Eliminate any unwanted characters from a string</dc:creator> <pubDate>Wed, 02 Jul 2008 17:13:37 +0000</pubDate> <guid isPermaLink="false">http://www.johnrockefeller.net/?p=226#comment-20</guid> <description>[...] PHP Tricks: Eliminate any unwanted characters from a string  Hi all. Iâ€™ve been looking for a handy/graceful way to do this for a while and I thought Iâ€™d share this little php trick with you in the hopes that itâ€™ll save you some time if you ever need it. If anyone reading this can quickly convert this example into other languages such as perl, coldfusion, ruby, c, c++ please be my guest and post it as a comment or as a trackback to this blog. What I wanted to do I wanted to scrub any characters out of a string that were not alphanumeric. That is, not [...]</description> <content:encoded><![CDATA[<p>[...] PHP Tricks: Eliminate any unwanted characters from a string  Hi all. Iâ€™ve been looking for a handy/graceful way to do this for a while and I thought Iâ€™d share this little php trick with you in the hopes that itâ€™ll save you some time if you ever need it. If anyone reading this can quickly convert this example into other languages such as perl, coldfusion, ruby, c, c++ please be my guest and post it as a comment or as a trackback to this blog. What I wanted to do I wanted to scrub any characters out of a string that were not alphanumeric. That is, not [...]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/11 queries in 0.020 seconds using disk

Served from: mail.liquidcodefederation.com @ 2010-03-15 18:09:26 -->