title: Adding 300 spaces with PHP for text file
body: <p>I want to add 300 spaces to a text file with PHP. I can't use <code>&amp;nbsp</code> as you already knew (.txt format, not HTML), so how to do this?</p>
  
  <p>So this code counts numbers as you can see, I need 300 white-spaces.</p>
  
  <pre><code>$spaces = 0; // will become 300 spaces
  
   while ($spaces &lt; 300)
   {
      $spaces++;
   }
  </code></pre>
  
  <p>and for testing how many white-spaces I have I will use</p>
  
  <pre><code>substr_count($spaces, ' ');
  </code></pre>
  
  <p>Thanks</p>