title: Clean up closed caption (text) file for processing
body: <p>I need help cleaning up a text file using PHP. The file is being processed afterwards by another function that requires the text to be formatted in a certain way. </p>
  
  <p>Original closed caption text:</p>
  
  <pre><code>1
  00:00:22,767 --&gt; 00:00:24,634
  line text 1
  line text 2
  line text 3
  
  2
  00:00:26,767 --&gt; 00:00:28,634
  line text 1
  line text 2
  line text 3
  </code></pre>
  
  <p>I need the line text all on one line. 
  eg.</p>
  
  <pre><code>1
  00:00:22,767 --&gt; 00:00:24,634
  line text 1 line text 2 line text 3
  
  2
  00:00:26,767 --&gt; 00:00:28,634
  line text 1 line text 2 line text 3
  </code></pre>
  
  <p>I would love some help/input. I am just having trouble gettign into the right head space.
  Thanks.</p>