title: What is the fastest way to iterate over multibyte string in PHP?
body: <p>Question is as simple as that:</p>
  
  <blockquote>
    <p>What is <strong>the fastest way</strong> to iterate over multibyte string in PHP?</p>
  </blockquote>
  
  <p>I suggest the following one:</p>
  
  <pre><code>&lt;?php
  
  $s = "bong-zhoor";
  
  for ($i = 0; $i &lt; mb_strlen($s, 'UTF-8'); $i++) {
      $ch = mb_substr($s, $i, 1, 'UTF-8');
  
      echo $ch . ' ';
  }
  </code></pre>
  
  <p>Looking for improvements, if any.</p>