mercredi 14 septembre 2016

PHP - check if only 1 out of 3 vars is not empty

I have 3 vars:

$var1
$var2
$var3

I'm actually looking for the best way to check if only one of these 3 var is not empty.

Is that possible to do this with one IF only ? if not then what's the best way?

Aucun commentaire:

Enregistrer un commentaire