Is there anyway i can append a variable name with another variable? For example:
$a = 1;
While ($a <= 5){
does something in here
$result$a = $some result from within this loop
$a++;
}
the idea being that at the end i will have $result1, $result2...$res ult5 with values saved in them.
$a = 1;
While ($a <= 5){
does something in here
$result$a = $some result from within this loop
$a++;
}
the idea being that at the end i will have $result1, $result2...$res ult5 with values saved in them.
Comment