title: convert datetime to timestamp php
body: <p>My GPS device is communicating to my php web services, it sends date=311011 and time=060904 formats.</p>
  
  <pre><code>    $time=str_split($time,2);
      $date=str_split($date,2);
      $time=implode(":",$time);
      $date=implode("-",$date);
  </code></pre>
  
  <p>This gives me the required date and time standard notations.</p>
  
  <ul>
  <li>date=31-10-11 </li>
  <li>time=06:09:04</li>
  </ul>
  
  <p>Now, i wanna convert this date, time to timestamp. I worked with strtotime(), but the date seems to be 31-10-11, which gives strange results. Do i have to append 20 to 11 statically to make it 2011, or any solution</p>