title: PHP: How to get characters of string one by one
body: <pre><code>$str = "8560841836";
  $mystr = array($str);
  $string = strlen($str);
  for($i=0; $i&lt;=$string; $i++){   echo $string[$i]."\n";  }
  </code></pre>
  
  <p>This code print this string in one line but I want it to be print in one char in line and other so on...</p>