I am new to PHP.
I want to show user's Age in numbers on user profile page.
I am recording user's Birth year in the database with this variable'birth_year'
I am not recording entire date of birth in datetime format.. I am only recording year like 1991
So currently if I want to display user's country then I write something like below
<?php echo $user[country]; ?>
And that display's name of the country
Now similarly, I want to disply user's age.
So I am writting something like below but its working
<?php echo date('y') - $user[birth_year] ; ?>
So what php code should I write to get value of (Birth Year - Current Year)