lundi 1 mai 2017

Why does this for loop repeat infintely

For some reason if I use a simple counter such as ++ this works fine however using +3 repeats the code infinitely.

for( $i = 1; $i<10; $i + 3 ) {

    echo cl_image_tag("property".$i.".jpg", array( "alt" => "Sample Image" ));

                        }




Aucun commentaire:

Enregistrer un commentaire