Dans :
Fonctions PHP
Concepts PHP
Fonctions MySQL
Fonctions HTML
Forum PHP/MySQL
Cours PHP/MySQL
Scripts PHP/MySQL
is_array détermine si la variable donnée est un tableau.
Retourne TRUE si var est un array , FALSE sinon.
<?php$yes = array('ceci', 'est', 'un tableau');echo is_array($yes) ? 'Tableau' : 'ce n\'est pas un tableau';echo "\n";$no = 'ceci est une chaîne';echo is_array($no) ? 'Tableau' : 'ce n\'est pas un tableau';?>