Boucle

Description

Mind Map on Boucle, created by akiel42 on 05/06/2015.
akiel42
Mind Map by akiel42, updated more than 1 year ago
akiel42
Created by akiel42 over 10 years ago
3
0

Resource summary

Boucle
  1. while

    Annotations:

    • <?php $texte = 0; while ($texte < 5) { echo '<p>je repète encore cette phrase ' . (5 - $texte) . ' fois</p>'; $texte++; } ?>
    1. erreur

      Annotations:

      • parenthèse après while
      1. tous types de boucle
      2. for

        Annotations:

        • <?php for ($texte = 0; $texte < 5; $texte++) { echo '<p>je repète encore cette phrase ' . (5 - $texte) . ' fois</p>'; } ?>
        1. erreur

          Annotations:

          • point virgule pour séparer les commandes de for
          1. quand on connaît le nombre de répétition
          2. incrémentation
            1. $variable++;

              Annotations:

              • equivaut à $variable = $variable + 1;
            Show full summary Hide full summary

            Similar

            Test I. Introduction to web technologies
            Angel Martínez Rodriguez
            Evaluación de Programación (MYSQL y PHP)
            Mitchel Romero C
            OpenSource Programming
            Faheem Ahmed
            PHP Exam One
            tr.badhan
            PHP & MySQL
            hratg
            PHP intro
            Māris Ozoliņš
            Programming and Scripting Skills Needed
            neteng33
            Chapter 6: PHP
            Rebecca Walton
            Plugin Development
            Joshua Reeves