KeoFlex PHP Tutorial 7/13 - Challenge
INSTRUCTIONSWe have a come a long way and covered a lot of material. On your own try to create a program that does the following.
Create 4 variables three of which are numeric and 1 which is text
The text variable will be your name
The first number variable will be your year of birth
the second number variable will be the current year.
Use PHP math to find out how old your are based on your year of birth and the current year. Set this as the value for the third numeric veritable.
Finally wrap things up by displaying an output on screen that says "My name is XXXXX and I am YYYYY years old. Replacing the XXXXX with your name and YYYYY with how old you are.