How should one do a switch case of following condition(-s):
if($this->hasA() && $this->hasB() && $this->hasC() && $this->hasD())
{
# ....
}
(The functions returns a boolean value)
This may be not a good practice to do, but I would like to know how this would look like in a switch case.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire