I'm a newbie. What is the best way to construct a multiple condition statement and finding the output for each possible condition? This reminds me of learning binary data.
if ( empty($a) && empty($b) && !empty($c) ) {
} elseif ( empty($a) && !empty($b) && empty($c) ) {
} elseif ( empty($a) && empty($b) && !empty($c) ) {
}
...
...
..
Is using if-then-else the best solution?
Aucun commentaire:
Enregistrer un commentaire