title: Using "explode" to get at key value pairs
body: <p>Consider the below data from a field in my database:</p>
  
  <pre><code>admin_language=
  language=
  editor=
  helpsite=
  timezone=0
  page_title=Edit Your Details
  show_page_title=1
  </code></pre>
  
  <p>I copied and pasted that data directly from phpMyAdmin -and so as far as I can tell the break for each KVP is a new line (e.g. <code>\n</code>). In fact, I found a forum where a person wrote a PHP script <a href="http://forum.joomla.org/viewtopic.php?t=656941" rel="nofollow">that also echo's the idea that they are new line characters</a>. The answer by <code>najtrok</code> on May 12, 2011 at 12:18 PM.</p>
  
  <p>However, the following script:</p>
  
  <pre><code>echo $newLine . "settings: $newSettings" . $newLine;
  
  $temp = explode('\n', $newSettings);
  foreach ($temp as $kvp) {
      list($key, $val) = explode('=', $kvp);
      echo "key: $key | val: $val" . $newLine;
  }
  </code></pre>
  
  <p>produced the following output:</p>
  
  <pre><code>settings: admin_language= language= editor= helpsite= timezone= page_title=Edit Your Details show_page_title=1 
  key: admin_language | val: language
  
  settings: admin_language= language= editor= helpsite= timezone= 
  key: admin_language | val: language
  
  ...
  </code></pre>
  
  <p>I can't understand why it's not exploding as I'd expect on a new line.</p>