title: How to explode a string, with spaces and new lines?
body: <p>I would like to explode a string (separated based on a delimiter and placed into an array), using both a space (" ") and a newline ("\n") as a delimiter.</p>
  
  <p>The method (which I don't think is the best way) is to: </p>
  
  <ol>
  <li>Explode the array by spaces</li>
  <li>Remake the string from the array</li>
  <li>Explode it again for new lines</li>
  <li>MySQL escape the individual elements.</li>
  </ol>
  
  <p><strong>Question:</strong> How do I exploded a string by both a space and new line?</p>
  
  <p>Reference to: <a href="https://stackoverflow.com/questions/3997336/explode-php-string-by-new-line">new line Array</a></p>