mercredi 20 février 2019

Is there any alternative for PHP isset() and !empty()?

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