Hi so i just frequently started doing PHP at school and now I have this project in school and when my code gets to this part:
for ($i=0; $i<=sizeof($kentat_taulukkona); +$i) {
echo $i;
if($i=1) {
$a = "=".$arvot_taulukkona[$i];
$aa = $kentat_taulukkona[$i];
} else if($i=2) {
$b = "=".$arvot_taulukkona[$i];
$ab = ", ".$kentat_taulukkona[$i];
} else if($i=3) {
$c = "=".$arvot_taulukkona[$i];
$ac = ", ".$kentat_taulukkona[$i];
} else if($i=4) {
$d = "=".$arvot_taulukkona[$i];
$ad = ", ".$kentat_taulukkona[$i];
} else if($i=5) {
$e = "=".$arvot_taulukkona[$i];
$ae = ", ".$kentat_taulukkona[$i];
} else if($i=6) {
$f = "=".$arvot_taulukkona[$i];
$af = ", ".$kentat_taulukkona[$i];
break;
}
}
it becomes an infinite loop. With that echo i found out it first echoes one 0 and after that number 1 till the end of the world.It might be just a typo what I'm missing or have I understood something wrong since to my knowledge this should work?