Hello, I am a beginner and I am with the following question, I have an array, where one of the parameters comes from the bank, where the number 5 is from the bank.
$inicio = 1;
$ultimo = 5; //esse valor vem do banco.
$arr = range($inicio, $ultimo);
print_r($arr);
With the above code I get an array of 1 from the number registered in the bank, in this example the 5.
Following the example I would like to put this array in a select html, from 1 to 5 in case, I tried with but I did not succeed, can anyone give me a light? Thank you