Bonjour, grand débutant php, j'ai ce script :

Code PHP : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
  <?php 
                $images = array(
                    'fut.jpg',
                    'vigne_savoie.jpg',
                    'verre_rouge.jpg',
                    'verre_blanc.jpg',
                    'vigne_alsace.jpg'
                    );
                 $i = mt_rand(0, (count($images) - 1));
 
               ?> 
 
                <img src="images/<?echo $images[i];?>"alt="image">

Or, il n'y a aucune image qui s'affiche. Auriez-vous une idée de ce qui cloche ?

Merci.