I have variables like $start1,$start2...$start($no_col). How can I show all the variables with echo in php? in the code below it doesn't work. $no_col can change from 1 to 10. it is not fixed! I want the result show me all $start1,$start2... $start($no_col) values. All the $start1 ..$start10 variable contain date like 2022-12-10;
for ($i=1; $i <=$no_col ; $i++) {
echo $start.${$i};
The result will be like this: 2022-03-10 2022-09-06 ...