title: Deprecated: Function split() is deprecated. How to rewrite this statement?
body: <p>I have the following statement which worked fine before PHP 5.3 using the <a href="http://php.net/split" rel="noreferrer"><code>split</code> function</a>:</p>
  
  <pre><code>list($year, $month, $day, $hour, $min, $sec) = split( '[: -]', $post_timestamp );
  </code></pre>
  
  <p>After upgrading to PHP 5.3, I get the Deprecated warning:</p>
  
  <blockquote>
    <p>Deprecated: Function split() is deprecated. </p>
  </blockquote>
  
  <p>I am trying to parse a string with format like:</p>
  
  <blockquote>
    <p>2010-08-10 23:07:58</p>
  </blockquote>
  
  <p>into its component parts.</p>