How to validate date of birth today & get the age from the birthday using php

we have already explained how you can get age from provide date now will focus more on how to validate date of birth today
now this function is basically validate date and finds the age from date_diff function in php
We are going to use the function we applied in date validation in How to do date validation in php (special function)
The simple function that does the work
then we apply a little tweak to get what we want
this function makes sure that the date parameters are integers
HOW TO APPLY IT
let's apply this in our work
you can echo this function since it just integer that is expected from it
we can still program a logic to check if it empty or not
Read the full article