Utilisation des ISSET
Résolu
Bonjour,
Pour utiliser des ISSET on m'a proposé le code ci-joint:
Pourrait-on m'expliquer les ?
Merci d'avance.
Nicolas
Pour utiliser des ISSET on m'a proposé le code ci-joint:
//avec ISSET //Si la variable $_POST['truc'] existe, alors $truc = $_POST['truc'] sinon elle vaut NULL $truc = isset($_POST['truc']) ? $_POST['truc'] : NULL; //ou avec !EMPTY() //Si la variable $_POST['truc'] existe et n'est pas vide, alors $truc = $_POST['truc'] sinon elle vaut NULL $truc = !empty($_POST['truc']) ? $_POST['truc'] : NULL;
Pourrait-on m'expliquer les ?
Merci d'avance.
Nicolas