title: How to convert date into integer number in php?
body: <p>I have an mysql database with a date column and i am using datatype datetime.</p>
  
  <p>But now i want change my datatype from datetime to long integer</p>
  
  <p>I would like to know how to convert date to any integer value.</p>
  
  <p>Let say i have a date</p>
  
  <p>i.e <code>2012-03-27 18:47:00</code> </p>
  
  <p>so I was wondering if it's possible to convert into  any integer number like <code>131221154</code></p>