I want to know in php is there any better way of knowing a variable is array and is not empty. I've been using this
if (!empty($collection) && is_array($collection)) { }
Aucun commentaire:
Enregistrer un commentaire