Using while in for loop (PHP) [closed]

This is a loop which goes on forever, $i never gets changed…

while ($i < 4) {
    print_r(", ");
}

maybe you meant this?

if ($i < 4) {
    print_r(", ");
}

Leave a Comment