title: How can I implode an array while skipping empty array items?
body: <p>Perl's <code>join()</code> ignores (skips) empty array values; PHP's <code>implode()</code> does not appear to.</p>
  
  <p>Suppose I have an array:</p>
  
  <pre><code>$array = array('one', '', '', 'four', '', 'six');
  implode('-', $array);
  </code></pre>
  
  <p>yields:</p>
  
  <pre><code>one---four--six
  </code></pre>
  
  <p>instead of (IMHO the preferable):</p>
  
  <pre><code>one-four-six
  </code></pre>
  
  <p>Any other built-ins with the behaviour I'm looking for? Or is it going to be a custom jobbie?</p>