I did a system of entrance exam questions, the user creates his exercises list, responds and gets the note, only I wanted to print this note before the questions my page is more or less like the code below.
<NAV BAR / CABEÇALHO>
function resultado ($nota) {
echo "Sua nota foi tal:".$nota;
}
<PROCESSAMENTO DA NOTA>
<CHAMA DA FUNCAO PARA IMPRIMIR>
But it always prints where I called the function, not where it is. Can anyone help me?