title: Convert flat array to a delimited string to be saved in the database
body: <p>What is the best method for converting a PHP array into a string?<br />
  I have the variable <code>$type</code> which is an array of types.</p>
  <pre><code>$type = $_POST[type];
  </code></pre>
  <p>I want to store it as a single string in my database with each entry separated by <code>|</code> :</p>
  <pre><code>Sports|Festivals|Other
  </code></pre>