title: TextArea to Array with PHP
body: <p>I'm trying to figure out how to convert html textarea into php array, </p>
  
  <p>I've used a form with POST to deliver the query to the php script, 
  and the php file is getting them with the following line:</p>
  
  <pre><code>$ids = array($_POST['ids']);
  </code></pre>
  
  <p>Needless to say that it puts everything into one line </p>
  
  <pre><code>Array ( [0] =&gt; line1 line2 line3 line4 ) 
  </code></pre>
  
  <p>I need the final results to replace this:</p>
  
  <pre><code>$numbers = array(
  "line1",
  "line2",
  "line3",
  "line4"
  );
  </code></pre>
  
  <p>What would be the best approach to divide and re-parse it ? </p>