Use strtotime()
to get the birthday as a timestamp, then calculate the years based on the difference from the current timestamp. Assuming $birthday
is the varchar from your database:
$age_in_years = floor((time() - strtotime($birthday))/(60*60*24*365));