I'm trying to run through a loop to check variables that are sequentially numbered (ie, $year1, $year2, $year3 etc etc).
I want to be able to loop a count in order to check these variables.
while($count < 99) {
$result = $year${count};
$count++;
}
The above would be workable in Perl but I don't know how to do the equivalent in PHP.
Thanks for your help
Cheers
JT I don't make mistakes, I'm merely beta-testing life.
I want to be able to loop a count in order to check these variables.
while($count < 99) {
$result = $year${count};
$count++;
}
The above would be workable in Perl but I don't know how to do the equivalent in PHP.
Thanks for your help
Cheers
JT I don't make mistakes, I'm merely beta-testing life.