Posts by Bruno Bispo • 1 point
1 post
-
-2
votes1
answer81
viewsQ: How to store a foreach variable inside an array
How can I make for that variable $aluno is not replaced within the array every time the loop in the foreach? foreach($alunos as $index => $aluno){ $numero_aluno = $index + 1; $resto =…
phpasked Bruno Bispo 1