<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 02:00:40 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[DevShed: The preg_replace_callback() function in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10998</guid>
      <link>http://www.phpdeveloper.org/news/10998</link>
      <description><![CDATA[<p>
DevShed has <a href="http://www.devshed.com/c/a/PHP/The-pregreplacecallback-function-in-PHP/">a new article</a> posted today spotlighting the <A href="http://www.php.net/preg_replace_callback">preg_replace_callback function</a> and how it compares to a normal preg_replace call in some everyday situations.
</p>
<blockquote>
The preg_replace_callback() function is an under-utilized and little documented PHP function that you will find useful and powerful in many situations, especially if you have been actively using preg_match() and preg_replace(). In this article, you will find a clear explanation of what this function does, together with carefully crafted examples that illustrate some of its uses.
</blockquote>
<p>
They show how to use it in a few different situations - inside conditional statements, for loops, in a sequence and inside of a class to manipulate matched strings with external functions (both native to PHP and user-defined).
</p>]]></description>
      <pubDate>Wed, 10 Sep 2008 11:19:07 -0500</pubDate>
    </item>
  </channel>
</rss>
