有些人可以帮助我使用标量值作为数组时出现错误吗?
$getal = $_POST['getal'];
For($teller=1; $teller<=11; $teller=$teller+1)
{
$uitkomst[$teller]=$teller*$getal;
}
答案 0 :(得分:1)
$getal = $_POST['getal'];
$uitkomst = array();
For($teller=1; $teller<=11; $teller=$teller+1)
{
$uitkomst[$teller]=$teller*$getal;
}