Supprimer les entrées de tableau vide
<?php
$array = array ("", false, 1, "string", null);
print_r (array_filter ($array));
Le retour est :
Array ( [2] => 1 [3] => string )
http://fr2.php.net/manual/en/function.array-filter.php
Published on 12/08/2015 PHP
<?php
$array = array ("", false, 1, "string", null);
print_r (array_filter ($array));
Array ( [2] => 1 [3] => string )