<?php
$vetorArray = [];
$armazenadorIndiceDoMenor = 0;
$menorValor = 0;
for ($indice = 0; $indice < 10 ; $indice++) {
fscanf(STDIN, "%f\n", $entrada);
$vetorArray[$indice] = $entrada;
}
for ($indice = 0; $indice < 10 ; $indice++) {
if($vetorArray[$indice] < $menorValor) {
$armazenadorIndiceDoMenor = $indice;
} elseif ($vetorArray[$indice] == $menorValor) {
$menorValor = $indice;
}
}
echo $armazenadorIndiceDoMenor+1 . "\n";
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: