I was trying to find a way to take a user's dob and change the output from the dob to their age. I originally thought I'd have to use JS to interact with the html but through chatgpt I eventually found I could do it in just a few simple lines of PHP.