check date difference with php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php">How to calculate the difference between two dates using PHP?</a>  </p>
</blockquote>



<p>how can i check in php, the date difference with the following given php variables?</p>

<pre><code>$year = 2012;
$month = 5;
$day = 20;
$hour = 23;
$min = 15;
$sec = 0;
</code></pre>

<p><strong>what i'm looking to do</strong></p>

<p>i want to compare the php variables shown above with actual current time, and then output the difference between the current time and the php varables, in days or even hours? which is the best and fastest way in going about doing something like this in php?</p>
