PHP Tell how old user is?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3776682/php-calculate-age">PHP calculate age</a>  </p>
</blockquote>



<p>I've seen a few websites that collect user birthdays and show their age as numbers, like 24 or 78 ect. I've been thinking how to do this, but I only get errors.</p>

<p>Here's something I've tried:</p>

<pre><code>&lt;?php
$str_birthday = "1995-11-24"; 
$str_today = date("Y-m-d H:i:s"); 
date_diff($str_birthday, $str_today); 

?&gt;
</code></pre>

<p>But I get some weird errors about date_diff... I know this would only return the age of user in days, hours, minutes and seconds, but I could handle it from that.</p>
