In PHP it is very common to use isset() and !empty() together during validation. For example :-
if(isset($data['email']) && !empty($data['email'])){
//then something
}
I was wondering is there any other short way to to do the same validation?
Aucun commentaire:
Enregistrer un commentaire