title: PHP new line every X characters in long characters sequence
body: <p>How can I add a new line characters (\n\r) in txt file every 10 characters?</p>
  
  <p>What I have is a long sequence of characters, and I like to create a new line for each 10 characters.</p>
  
  <p>in example, let's say I have that sequence of characters:</p>
  
  <pre><code>FadE4fh73d4F3fab5FnF4fbTKhuS591F60b55hsE
  </code></pre>
  
  <p>and I like to convert it to that:</p>
  
  <pre><code>FadE4fh73d
  4F3fab5FnF
  4fbTKhuS59
  1F60b55hsE
  </code></pre>
  
  <p>How can I do that ?</p>
  
  <p>I know that I can use a loop for that, but because the above string is an example and my string that I have to split it is really very very long, just I wander if there is any faster and more easy way to spit my string.</p>