<?php $dossier = ['a.txt', 'b.csv']; $_GET['fichier'] = 'b.csv'; if(!empty($_GET['fichier']) && in_array($fichier=$_GET['fichier'], $dossier)) echo $fichier, ' OK'; else echo 'pas bon';
You have javascript disabled. You will not be able to edit any code.