I'm needing help with logic on my PHP loop.
So I have user input that comes in the form of a number anything between 18 and 100. They are $agemin and $agemax. Based on their values I dynamically create bit of code. I need some help with the logic. Below is an example.
$agemin = 18;
$agemax = 24;
Not sure which, but need a php loop here I assume
$population .= ' + age'.$ageCount;
My output of $population based on the above example would be:
+ age18 + age19 + age20 + age21 + age22 + age23 + age24