<?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>Thu, 23 May 2013 17:24:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Evert Pot's Blog: iconv_substr vs mbstring_substr]]></title>
      <guid>http://www.phpdeveloper.org/news/16934</guid>
      <link>http://www.phpdeveloper.org/news/16934</link>
      <description><![CDATA[<p>
<i>Evert Pot</i> came across an interesting performance issue as he was working through an application that needed to do some string substitutions - the difference between <a href="http://www.rooftopsolutions.nl/blog/iconv_substr-vs-mbstring_substr">iconv_substr, mb_substr and substr</a>.
</p>
<blockquote>
While working on an application I ran across a huge bottleneck which I isolated down all the way to the use of the iconv_substr function. If you ever wonder which is better to use, [the benchmark code in the post[ should help your decision.
</blockquote>
<p>
His results changed quite a bit from machine to machine (and OS/platform to OS/platform) but one statistic stood out on them all - the <a href="http://php.net/iconv_substr">iconv_substr</a> was slower than <a href="http://php.net/mb_substr">mb_substr</a> method....by a lot in one case (about 2100000% slower).
</p>]]></description>
      <pubDate>Fri, 30 Sep 2011 11:03:20 -0500</pubDate>
    </item>
  </channel>
</rss>
