Subject: PHP

Age Calculation

Create a variable $birthYear and assign it your year of birth. Calculate your current age using the current year and display the result.

Learning Outcome: Use variables and basic arithmetic to calculate values.

Select file or drag and drop

PNG, JPG, SVG

Preview