<?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>Sat, 25 May 2013 07:57:33 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Make Me Pulse Blog: PHP6, Unicode and TextIterator features]]></title>
      <guid>http://www.phpdeveloper.org/news/9796</guid>
      <link>http://www.phpdeveloper.org/news/9796</link>
      <description><![CDATA[<p>
On the Make Me Pulse blog, there's <a href="http://blog.makemepulse.com/2008/03/13/php6-unicode-and-textiterator-features/">a look at</a> PHP6's support of Unicode in the SPL (Standard PHP Library) TextIterator handler.
</p>
<blockquote>
I've just install the last version of <a href="http://snaps.php.net/">PHP6 dev</a> and I've decided to test the famous new feature, the PHP Unicode Support. I will not explain new things about PHP6 or Unicode or TextIterator, it's just my discoveries test on this features.
</blockquote>
<p>
He <a href="http://blog.makemepulse.com/2008/03/13/php6-unicode-and-textiterator-features/">steps through</a> the process he followed - enabling Unicode support, testing various output methods (including just an echo and using the TextIterator) as well as some of the manipulation methods (next/first/current) that can be used to get certain characters out of a string.
</p>]]></description>
      <pubDate>Fri, 14 Mar 2008 09:32:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[David Sklar's Blog: Visiting each character in a string]]></title>
      <guid>http://www.phpdeveloper.org/news/7710</guid>
      <link>http://www.phpdeveloper.org/news/7710</link>
      <description><![CDATA[<p>
In a <a href="http://www.sklar.com/blog/archives/107-Visiting-each-character-in-a-string.html">new post today</a>, <i>David Skalr</i> demonstrates how he solved a simple problem - looping through all of the characters in a string in a UTF-8 enabled environment.
</p>
<blockquote>
So I've got this string (in PHP) and I need to scan through it character by character. I can't scan byte by byte because it's 2007, our users write in <a href="http://blogyazarlari.ning.com/">all sorts</a> <a href="http://canusa.ning.com/profiles/blog/show?id=674817%3ABlogPost%3A261">of languages</a>, and the string is UTF-8.
</blockquote>
<p>
To remedy the situation, he falls back on an old standby - <a href="http://us.php.net/manual/en/ref.mbstring.php">the mb_* functions</a>, mb_substr and mb_strlen. His benchmarks show that, with a 1500 character string, running his sample script gives him around 61 scans per second. (The PHP6 version with TextIterator works much faster, though - 450 scans per second).
</p>]]></description>
      <pubDate>Thu, 26 Apr 2007 07:01:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Andrei Zmievski's Blog: All the Little Pieces, or TextIterator in PHP 6]]></title>
      <guid>http://www.phpdeveloper.org/news/5791</guid>
      <link>http://www.phpdeveloper.org/news/5791</link>
      <description><![CDATA[<p>
On <i>Andrei Zmievski</i>'s blog today, there's <a href="http://www.gravitonic.com/blog/archives/000149.html">a new post</a> looking at new features of the upcoming PHP6 series - specifically dealing with internationalization and Unicode support.
</p>
<blockquote>
I have been working on the Unicode support in PHP for quite a while now and I figure that it is time to start talking about Unicode and I18N in general and specifically about some of the new features that PHP 6 will be bringing to the table.
</blockquote>
<p>
He <a href="http://www.gravitonic.com/blog/archives/000149.html">first covers</a> the new TextIterator class, as "swiss-army kife-like" tool that gives the user abilities to work with text units (really their boundaries) in a simple, normalized way. Of course, definitions and code follow to illustrate the point with examples ranging from interpreting a string out to grabbing certain bits of the string. 
</p>
<p>
He <a href="http://www.gravitonic.com/blog/archives/000149.html">also introduces</a> the opposite twin of the TextIterator class - ReverseTextIterator. It's basic function is to (basically) do everything its twin does, only in reverse.
</p>]]></description>
      <pubDate>Fri, 14 Jul 2006 05:55:15 -0500</pubDate>
    </item>
  </channel>
</rss>
